rest

package
v2.18.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: GPL-3.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

type REST struct {
	// contains filtered or unexported fields
}

REST is the http handler

func New

func New(
	log *structs.Loggers,
	gbs *snitch.Stats,
	p *plot.Plot,
	keyspace *keyspace.Keyspace,
	mc *memcached.Memcached,
	collector *collector.Collector,
	set structs.SettingsHTTP,
	probeThreshold float64,
	ks *keyset.KeySet,
	telnetManager *telnetmgr.Manager,
) *REST

New returns http handler to the endpoints

func (*REST) Start

func (trest *REST) Start()

Start asynchronously the handler of the APIs

func (*REST) Stop

func (trest *REST) Stop()

Stop - stops the rest server

Jump to

Keyboard shortcuts

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