Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface {
Start() (err error)
}
Server defines the interface for StatsServer and it's mock
func NewStatServer ¶
NewStatServer returns an instance of StatServer
type StatServer ¶
type StatServer struct {
// contains filtered or unexported fields
}
StatServer is starts and polls stats collection, and serves the results via a simple API
func (*StatServer) Start ¶
func (ss *StatServer) Start() (err error)
Start will start the collector and api server and then block for errors, interrupts, or cancellation
Click to show internal directories.
Click to hide internal directories.