rest

package
v2.28.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: GPL-3.0 Imports: 21 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(
	timelineManager *tlmanager.Instance,
	p *plot.Plot,
	keyspace *keyspace.Keyspace,
	mc *memcached.Memcached,
	collector *collector.Collector,
	set structs.SettingsHTTP,
	ks *keyset.Manager,
	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