helper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCmds added in v0.2.0

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

func InitConfig

func InitConfig(t *testing.T, conf string, params ...HelperParams)

func NewAgent added in v0.3.0

func NewAgent() *agent.Agent

func NewAnalyzerStorage added in v0.3.0

func NewAnalyzerStorage(t *testing.T, s storage.Storage) *analyzer.Server

func NewGraph added in v0.4.0

func NewGraph(t *testing.T) *graph.Graph

func SFlowSetup

func SFlowSetup(t *testing.T) (*net.UDPConn, error)

func StartAgentWithConfig added in v0.2.0

func StartAgentWithConfig(t *testing.T, conf string, params ...HelperParams) *agent.Agent

func StartAnalyzerWithConfig added in v0.4.0

func StartAnalyzerWithConfig(t *testing.T, conf string, s storage.Storage, params ...HelperParams) *analyzer.Server

func WaitApi added in v0.4.0

func WaitApi(t *testing.T, analyzer *analyzer.Server)

Types

type Cmd added in v0.2.0

type Cmd struct {
	Cmd   string
	Check bool
}

type HelperAgentAnalyzer added in v0.3.0

type HelperAgentAnalyzer struct {
	Agent    *agent.Agent
	Analyzer *analyzer.Server
	// contains filtered or unexported fields
}

func NewAgentAnalyzerWithConfig added in v0.3.0

func NewAgentAnalyzerWithConfig(t *testing.T, conf string, s storage.Storage, params ...HelperParams) *HelperAgentAnalyzer

func (*HelperAgentAnalyzer) Flush added in v0.3.0

func (h *HelperAgentAnalyzer) Flush()

func (*HelperAgentAnalyzer) Start added in v0.3.0

func (h *HelperAgentAnalyzer) Start()

func (*HelperAgentAnalyzer) Stop added in v0.3.0

func (h *HelperAgentAnalyzer) Stop()

type HelperParams added in v0.4.0

type HelperParams map[string]interface{}

Jump to

Keyboard shortcuts

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