integration

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeServer       = "server"
	ModeClient       = "client"
	DefaultIOTimeout = 1 * time.Second
)

Variables

View Source
var (
	Local    snet.UDPAddr
	Mode     string
	Progress string

	Attempts int
)

Functions

func AttemptRepeatedly

func AttemptRepeatedly(name string, attempt AttemptFunc) int

AttemptRepeatedly runs attempt until it returns true or more than Attempts were executed. Between two attempts at least RetryTimeout time has to pass. Returns 0 on success, 1 on failure.

func Done added in v0.6.0

func Done(src, dst addr.IA)

Done informs the integration test that a test binary has finished.

func InitNetwork added in v0.5.0

func InitNetwork(opts ...Option) *snet.SCIONNetwork

func InitTracer added in v0.5.0

func InitTracer(name string) (func(), error)

InitTracer initializes the global tracer and returns a closer function.

func LogFatal

func LogFatal(msg string, a ...interface{})

LogFatal logs a critical error and exits with 1

func SDConn added in v0.5.0

func SDConn() daemon.Connector

func Setup

func Setup()

Types

type AttemptFunc

type AttemptFunc func(n int) bool

AttemptFunc attempts a request repeatedly, receives the attempt number

type Option added in v0.7.0

type Option func(o *options)

func WithSCIONNetworkMetrics added in v0.7.0

func WithSCIONNetworkMetrics(m snet.SCIONNetworkMetrics) Option

WithSCIONNetworkMetrics sets the metrics that are provided to the SCIONNetwork.

func WithSCIONPacketConnMetrics added in v0.7.0

func WithSCIONPacketConnMetrics(m snet.SCIONPacketConnMetrics) Option

WithSCIONNetworkMetrics sets the metrics that are provided to the SCIONPacketConn.

func WithSCMPErrorCounter added in v0.7.0

func WithSCMPErrorCounter(m metrics.Counter) Option

WithSCMPErrorCounter sets the counter that be provided to the DefaultPacketDispatcherService of the SCIONNetwork.

Directories

Path Synopsis
cases
Package cases contains router acceptance cases that can be integrated into the braccept binary.
Package cases contains router acceptance cases that can be integrated into the braccept binary.

Jump to

Keyboard shortcuts

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