Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseConsulDiscovery ¶
func UseConsulDiscovery()
Types ¶
type ConsulDiscovery ¶
type ConsulDiscovery struct {
// contains filtered or unexported fields
}
func (*ConsulDiscovery) GetDiscovery ¶
func (c *ConsulDiscovery) GetDiscovery(moduleName string) *client.ConsulDiscovery
func (*ConsulDiscovery) RegisterDiscovery ¶
func (c *ConsulDiscovery) RegisterDiscovery(moduleName string) *client.ConsulDiscovery
func (*ConsulDiscovery) RegisterServer ¶
func (c *ConsulDiscovery) RegisterServer(ip string) server.Plugin
type IRPCDiscovery ¶
type IRPCDiscovery interface { // RegisterServer // @Description: 注册rpcx的服务发现 // @param ip 传入注册的本机ip和端口 example: 192.168.1.10:8881 // @return server.Plugin 返回的是rpcx所需的插件类型 RegisterServer(ip string) server.Plugin RegisterDiscovery(moduleName string) *client.ConsulDiscovery GetDiscovery(moduleName string) *client.ConsulDiscovery }
IRPCDiscovery @Description: rpc服务注册接口
func GetDiscovery ¶
func GetDiscovery() IRPCDiscovery
type LoginCheck ¶
type LoginCheck struct { }
func (LoginCheck) CheckLogin ¶
func (l LoginCheck) CheckLogin(token string) (bool, string)
Click to show internal directories.
Click to hide internal directories.