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

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

func InitConfig

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

func NewAgent

func NewAgent() *agent.Agent

func NewAnalyzerStorage

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

func NewGraph

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

func SFlowSetup

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

func StartAgentWithConfig

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

func StartAnalyzerWithConfig

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

func WaitApi

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

Types

type Cmd

type Cmd struct {
	Cmd   string
	Check bool
}

type HelperAgentAnalyzer

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

func NewAgentAnalyzerWithConfig

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

func (*HelperAgentAnalyzer) Flush

func (h *HelperAgentAnalyzer) Flush()

func (*HelperAgentAnalyzer) Start

func (h *HelperAgentAnalyzer) Start()

func (*HelperAgentAnalyzer) Stop

func (h *HelperAgentAnalyzer) Stop()

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