websocketserver

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batcher

type Batcher interface {
	BatchIncrementCounter(name string)
	BatchCounter(name string) metricbatcher.BatchCounterChainer
}

type WebsocketServer

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

func New

func New(apiEndpoint string, sinkManager *sinkmanager.SinkManager, writeTimeout time.Duration, keepAliveInterval time.Duration, messageDrainBufferSize uint, dropsondeOrigin string, batcher Batcher) (*WebsocketServer, error)

func (*WebsocketServer) ServeHTTP

func (w *WebsocketServer) ServeHTTP(writer http.ResponseWriter, request *http.Request)

func (*WebsocketServer) Start

func (w *WebsocketServer) Start()

func (*WebsocketServer) Stop

func (w *WebsocketServer) Stop()

Jump to

Keyboard shortcuts

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