Documentation ¶
Index ¶
- Constants
- Variables
- func AttemptRepeatedly(name string, attempt AttemptFunc) int
- func Done(src, dst addr.IA)
- func InitNetwork(opts ...Option) *snet.SCIONNetwork
- func InitTracer(name string) (func(), error)
- func LogFatal(msg string, a ...interface{})
- func SDConn() daemon.Connector
- func Setup()
- type AttemptFunc
- type Option
Constants ¶
View Source
const ( ModeServer = "server" ModeClient = "client" DefaultIOTimeout = 1 * time.Second )
Variables ¶
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 InitNetwork ¶ added in v0.5.0
func InitNetwork(opts ...Option) *snet.SCIONNetwork
func InitTracer ¶ added in v0.5.0
InitTracer initializes the global tracer and returns a closer function.
Types ¶
type AttemptFunc ¶
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
WithSCMPErrorCounter sets the counter that be provided to the DefaultPacketDispatcherService of the SCIONNetwork.
Click to show internal directories.
Click to hide internal directories.