ing
This commit is contained in:
parent
179e9c6987
commit
1e70566f79
22
annotation/service.go
Normal file
22
annotation/service.go
Normal 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
14
glide.lock
generated
|
@ -1,6 +1,16 @@
|
||||||
hash: 987b8e6d8a376bcd7d88b53e7e96589051b26a5398cc6679b26065d1a9f81239
|
hash: 112713c1db3128eead4fdba2f6b4abd573e9b0be801e409b14a2dabbb2feeb1d
|
||||||
updated: 2017-12-04T17:52:24.210845903+09:00
|
updated: 2018-03-22T18:42:53.085852006+09:00
|
||||||
imports:
|
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
|
- name: github.com/google/gopacket
|
||||||
version: 11c65f1ca9081dfea43b4f9643f5c155583b73ba
|
version: 11c65f1ca9081dfea43b4f9643f5c155583b73ba
|
||||||
testImports: []
|
testImports: []
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
package: git.loafle.net/overflow/overflow_commons_go
|
package: git.loafle.net/overflow/overflow_commons_go
|
||||||
|
import:
|
||||||
|
- package: git.loafle.net/commons_go/di
|
||||||
|
|
Loading…
Reference in New Issue
Block a user