This commit is contained in:
crusader 2018-03-22 18:43:46 +09:00
parent 179e9c6987
commit 1e70566f79
3 changed files with 36 additions and 2 deletions

22
annotation/service.go Normal file
View File

@ -0,0 +1,22 @@
package annotation
// @Service()
// inherit @Component
import (
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
cdia "git.loafle.net/commons_go/di/injection/annotation"
)
const (
ServiceTag = "@overFlow:Service"
)
func init() {
cda.RegisterAnnotation(ServiceTag, reflect.TypeOf((*Service)(nil)))
}
type Service struct {
cdia.Component
}

14
glide.lock generated
View File

@ -1,6 +1,16 @@
hash: 987b8e6d8a376bcd7d88b53e7e96589051b26a5398cc6679b26065d1a9f81239
updated: 2017-12-04T17:52:24.210845903+09:00
hash: 112713c1db3128eead4fdba2f6b4abd573e9b0be801e409b14a2dabbb2feeb1d
updated: 2018-03-22T18:42:53.085852006+09:00
imports:
- name: git.loafle.net/commons_go/di
version: 2c6cdb51dc0b7c423d392b4db11adbe0f96b5137
subpackages:
- annotation
- injection/annotation
- name: git.loafle.net/commons_go/util
version: 61b8b75c30b8f85be1d48b257a1f501c8e9f6827
subpackages:
- encoding/json
- reflect
- name: github.com/google/gopacket
version: 11c65f1ca9081dfea43b4f9643f5c155583b73ba
testImports: []

View File

@ -1 +1,3 @@
package: git.loafle.net/overflow/overflow_commons_go
import:
- package: git.loafle.net/commons_go/di