helper

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Standalone        bool
	GraphOutputFormat string
	TopologyBackend   string
	FlowBackend       string
	AnalyzerListen    string
)

Functions

func DecodeWSStructMessageJSON added in v0.18.0

func DecodeWSStructMessageJSON(b []byte) *shttp.WSStructMessage

func ExecCmds

func ExecCmds(t *testing.T, cmds ...Cmd) (e error)

func FilterIPv6AddrAnd added in v0.9.0

func FilterIPv6AddrAnd(flows []*flow.Flow, A, B string) (r []*flow.Flow)

func FlowsToString added in v0.16.0

func FlowsToString(flows []*flow.Flow) string

func InitConfig

func InitConfig(conf string, params ...HelperParams) error

func SendPCAPFile added in v0.16.0

func SendPCAPFile(filename string, socket string) error

func WSClose added in v0.16.0

func WSClose(ws *websocket.Conn) error

func WSConnect added in v0.9.0

func WSConnect(endpoint string, timeout int, onReady func(*websocket.Conn)) (*websocket.Conn, error)

Types

type Cmd

type Cmd struct {
	Cmd   string
	Check bool
}

type HelperParams

type HelperParams map[string]interface{}

Source Files

  • helper.go

Jump to

Keyboard shortcuts

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