Documentation ¶
Index ¶
- func InitServiceHub()
- type SerServer
- func (SerServer) DeregisterServer(stage *kk_stage.Stage, param *kk_etcd_models.DeregisterServerParam) error
- func (SerServer) RegisterService(stage *kk_stage.Stage, registration *kk_etcd_models.ServerRegistration) error
- func (SerServer) ServerList(client *clientv3.Client, serverType kk_etcd_models.ServerType) (serverList *kk_etcd_models.PBListServer, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitServiceHub ¶
func InitServiceHub()
Types ¶
type SerServer ¶
type SerServer struct{}
func (SerServer) DeregisterServer ¶
func (SerServer) DeregisterServer(stage *kk_stage.Stage, param *kk_etcd_models.DeregisterServerParam) error
func (SerServer) RegisterService ¶
func (SerServer) RegisterService(stage *kk_stage.Stage, registration *kk_etcd_models.ServerRegistration) error
func (SerServer) ServerList ¶
func (SerServer) ServerList(client *clientv3.Client, serverType kk_etcd_models.ServerType) (serverList *kk_etcd_models.PBListServer, err error)
ServerList serverName, should with prefix key_prefix.ServiceGrpc or key_prefix.ServiceHttp only give prefix to get all service list
Click to show internal directories.
Click to hide internal directories.