server

package
v0.0.0-...-e0a0d6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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

func NewStatServer(constants config.Config) (ss Server)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL