server

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnDemandProbeServer

type OnDemandProbeServer struct {
	common.RWMutex
	graph.DefaultGraphListener
	shttp.DefaultWSSpeakerEventHandler
	Graph              *graph.Graph
	Probes             *probe.ProbeBundle
	WSStructClientPool *shttp.WSStructClientPool
	// contains filtered or unexported fields
}

OnDemandProbeServer describes an ondemand probe server based on websocket

func NewOnDemandProbeServer

func NewOnDemandProbeServer(fb *probe.ProbeBundle, g *graph.Graph, pool *shttp.WSStructClientPool) (*OnDemandProbeServer, error)

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

func (*OnDemandProbeServer) OnNodeDeleted

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

OnNodeDeleted graph event

func (*OnDemandProbeServer) OnWSStructMessage added in v0.17.0

func (o *OnDemandProbeServer) OnWSStructMessage(c shttp.WSSpeaker, msg *shttp.WSStructMessage)

OnWSStructMessage websocket message, valid message type are CaptureStart, CaptureStop

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