analyzer

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 26 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAgentAnalyzerUDPAcceptNotSupported = errors.New("UDP connection is datagram based (not connected), accept() not supported")

Functions

func NewTopologyProbeBundleFromConfig added in v0.8.0

func NewTopologyProbeBundleFromConfig(g *graph.Graph) (*probe.ProbeBundle, error)

Types

type AgentAnalyzerClientConn added in v0.8.0

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

func NewAgentAnalyzerClientConn added in v0.8.0

func NewAgentAnalyzerClientConn(addr *net.UDPAddr) (a *AgentAnalyzerClientConn, err error)

func (*AgentAnalyzerClientConn) Close added in v0.8.0

func (a *AgentAnalyzerClientConn) Close()

func (*AgentAnalyzerClientConn) Write added in v0.8.0

func (a *AgentAnalyzerClientConn) Write(b []byte) (int, error)

type AgentAnalyzerConnectionType added in v0.8.0

type AgentAnalyzerConnectionType int
const (
	UDP AgentAnalyzerConnectionType = 1 + iota
	TLS
)

type AgentAnalyzerServerConn added in v0.8.0

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

func NewAgentAnalyzerServerConn added in v0.8.0

func NewAgentAnalyzerServerConn(addr *net.UDPAddr) (a *AgentAnalyzerServerConn, err error)

func (*AgentAnalyzerServerConn) Accept added in v0.8.0

func (*AgentAnalyzerServerConn) Cleanup added in v0.8.0

func (a *AgentAnalyzerServerConn) Cleanup()

func (*AgentAnalyzerServerConn) Close added in v0.8.0

func (a *AgentAnalyzerServerConn) Close()

func (*AgentAnalyzerServerConn) Mode added in v0.8.0

func (*AgentAnalyzerServerConn) Read added in v0.8.0

func (a *AgentAnalyzerServerConn) Read(data []byte) (int, error)

func (*AgentAnalyzerServerConn) SetDeadline added in v0.8.0

func (a *AgentAnalyzerServerConn) SetDeadline(t time.Time)

func (*AgentAnalyzerServerConn) Timeout added in v0.8.0

func (a *AgentAnalyzerServerConn) Timeout(err error) bool

type Client

type Client struct {
	Addr string
	Port int
	// contains filtered or unexported fields
}

func NewClient

func NewClient(addr string, port int) (*Client, error)

func (*Client) SendFlow

func (c *Client) SendFlow(f *flow.Flow) error

func (*Client) SendFlows

func (c *Client) SendFlows(flows []*flow.Flow)

type Server

type Server struct {
	HTTPServer          *shttp.Server
	WSServer            *shttp.WSServer
	GraphServer         *graph.GraphServer
	AlertServer         *alert.AlertServer
	OnDemandClient      *ondemand.OnDemandProbeClient
	FlowMappingPipeline *mappings.FlowMappingPipeline
	ProbeBundle         *probe.ProbeBundle
	Storage             storage.Storage
	FlowTable           *flow.Table
	TableClient         *flow.TableClient

	EmbeddedEtcd *etcd.EmbeddedEtcd
	EtcdClient   *etcd.EtcdClient
	// contains filtered or unexported fields
}

func NewServerFromConfig

func NewServerFromConfig() (*Server, error)

func (*Server) AnalyzeFlows

func (s *Server) AnalyzeFlows(flows []*flow.Flow)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe()

func (*Server) SetStorage

func (s *Server) SetStorage(storage storage.Storage)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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