server

package
v0.0.0-...-5b448de Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnDemandProbeServer

type OnDemandProbeServer struct {
	sync.RWMutex
	graph.DefaultGraphListener
	shttp.DefaultWSClientEventHandler
	Graph             *graph.Graph
	Probes            *probes.FlowProbeBundle
	WSAsyncClientPool *shttp.WSAsyncClientPool
	// contains filtered or unexported fields
}

OnDemandProbeServer describes an ondemand probe server based on websocket

func NewOnDemandProbeServer

func NewOnDemandProbeServer(fb *probes.FlowProbeBundle, g *graph.Graph, wspool *shttp.WSAsyncClientPool) (*OnDemandProbeServer, error)

NewOnDemandProbeServer creates a new Ondemand probes server based on graph and websocket

func (*OnDemandProbeServer) OnMessage

func (o *OnDemandProbeServer) OnMessage(c *shttp.WSAsyncClient, msg shttp.WSMessage)

OnMessage websocket message, valid message type are CaptureStart, CaptureStop

func (*OnDemandProbeServer) OnNodeDeleted

func (o *OnDemandProbeServer) OnNodeDeleted(n *graph.Node)

OnNodeDeleted graph event

func (*OnDemandProbeServer) Start

func (o *OnDemandProbeServer) Start() error

Start the probe

func (*OnDemandProbeServer) Stop

func (o *OnDemandProbeServer) Stop()

Stop the probe

Jump to

Keyboard shortcuts

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