Documentation
¶
Index ¶
- Constants
- func Get[T object.ObjectInterface](ctx context.Context, namespace, name string) T
- func Init(logConf zap.Config)
- func Listen(host string, prot int) error
- func OpenTracing(open string)
- func Register(sv ServiceInterface)
- func RegisterToCenter(conf etcd.Config, ttl int64, listen *krpc.Local) error
- func Stop()
- type Base
- type Context
- type ObjDesc
- type ServiceInterface
Constants ¶
View Source
const ( Net_Tcp = "tcp" Net_Addr = "%s:%d" )
Variables ¶
This section is empty.
Functions ¶
func OpenTracing ¶
func OpenTracing(open string)
func Register ¶
func Register(sv ServiceInterface)
func RegisterToCenter ¶
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) Desc ¶
func (b *Base) Desc() *grpc.ServiceDesc
type Context ¶
func NewContext ¶
func NewContext() *Context
type ObjDesc ¶
func NewObjDesc ¶
type ServiceInterface ¶
type ServiceInterface interface { Desc() *grpc.ServiceDesc Deps() map[string][]*ObjDesc }
Click to show internal directories.
Click to hide internal directories.