Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseServerInfos ¶
ParseServerInfos format the infos about Server at map, used for return data at /stats
func SetServerRun ¶
func SetServerRun(s Server)
SetServerRun set the instance of server that will running
Types ¶
type FakeServer ¶
type FakeServer struct{}
FakeServer interface that define the contract to be used between monitor.http and workerServer for tests only
func (FakeServer) Infos ¶
func (f FakeServer) Infos() map[string]interface{}
Infos return the empty infos
func (FakeServer) Workers ¶
func (f FakeServer) Workers() []*worker.Worker
Workers return the worker from FakeServer
type Server ¶
Server interface that define the contract to be used between monitor.http and workerServer
func GetServerRun ¶
func GetServerRun() Server
GetServerRun return the instance of server that still running
Click to show internal directories.
Click to hide internal directories.