Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Mu sync.Mutex
View Source
var Wg sync.WaitGroup
Functions ¶
func StartHealthCheck ¶
func StartHealthCheck(s *ServersConfig, interval int)
Types ¶
type ServersConfig ¶
type ServersConfig struct { Hosts []*Server // contains filtered or unexported fields }
func Init ¶
func Init() ServersConfig
func (*ServersConfig) Add ¶
func (s *ServersConfig) Add(servers ...string)
func (*ServersConfig) Current ¶
func (s *ServersConfig) Current() *Server
Click to show internal directories.
Click to hide internal directories.