Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchRegistry ¶
func FetchRegistryWithPort ¶
func GetOtherHosts ¶
func GetOtherHosts() []string
Types ¶
type ServerRegistry ¶
type ServerRegistry struct { Name string `json:"name"` Ip string `json:"ip"` Port int `json:"port"` Weight int `json:"weight"` SDHost string // contains filtered or unexported fields }
func NewRegistry ¶
func NewRegistry(svrName, ip, sdUrl string, port int) *ServerRegistry
func NewServerRegistry ¶
func NewServerRegistry() *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.