diff --git a/annotation/rpc-service.go b/annotation/rpc-service.go new file mode 100644 index 0000000..4d3985e --- /dev/null +++ b/annotation/rpc-service.go @@ -0,0 +1,17 @@ +package annotation + +import ( + "reflect" + + cda "git.loafle.net/commons/di-go/annotation" +) + +var RPCServiceAnnotationType = reflect.TypeOf((*RPCServiceAnnotation)(nil)) + +func init() { + cda.RegisterAnnotation(RPCServiceAnnotationType) +} + +type RPCServiceAnnotation struct { + cda.TypeAnnotation `@annotation:"@overflow:RPCService"` +}