Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerRegistry ¶
type ServerRegistry struct { Name string `json:"name"` Ip string `json:"ip"` Port int `json:"port"` Weight int `json:"weight"` Extra map[string]interface{} `json:"extra"` AddrList []string `json:"-"` // contains filtered or unexported fields }
func NewGRPCServerRegistry ¶
func NewGRPCServerRegistry() *ServerRegistry
func NewHttpServerRegistry ¶
func NewHttpServerRegistry() *ServerRegistry
func NewRegistry ¶
func NewRegistry(svrName, ip string, addrList []string, port int) *ServerRegistry
func (*ServerRegistry) SetWeight ¶
func (s *ServerRegistry) SetWeight(w int)
func (*ServerRegistry) Stop ¶
func (s *ServerRegistry) Stop()
Click to show internal directories.
Click to hide internal directories.