webserver

package
v0.0.0-...-b9da5a6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCertLocation = "./certs/cert.pem"
	DefaultKeyLocation  = "./certs/key.pem"
)

Webserver Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Deployment     string
	Job            string
	Index          string
	IP             string
	ValueMetrics   map[string]float64
	CounterMetrics map[string]float64
}

Resource represents cloud controller data

type WebServer

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

WebServer REST endpoint for sending data

func New

New creates a new WebServer

func (*WebServer) CacheEnvelope

func (webserver *WebServer) CacheEnvelope(envelope *events.Envelope)

CacheEnvelope caches envelope by origin

func (*WebServer) ClearCache

func (webserver *WebServer) ClearCache()

ClearCache clears out cache for server

func (*WebServer) Start

func (webserver *WebServer) Start(keyLocation string, certLocation string) <-chan error

Start starts webserver listening

func (*WebServer) TokenTimeout

func (webserver *WebServer) TokenTimeout(token *webtoken.Token)

TokenTimeout is a callback for when a token timesout to remove

Jump to

Keyboard shortcuts

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