network

package
v0.0.0-...-26e86c7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New() *Module

func (*Module) Close

func (m *Module) Close(ctx context.Context) error

func (*Module) Init

func (m *Module) Init(ctx context.Context, c config.Config) error

type Settings

type Settings struct {
	Enabled         bool          `mapstructure:"enabled"`
	Timeout         time.Duration `mapstructure:"timeout"`
	InitialInterval time.Duration `mapstructure:"initial_interval"`
	MaxInterval     time.Duration `mapstructure:"max_interval"`
	Count           int           `mapstructure:"count"`
	LossThreshold   float64       `mapstructure:"loss_threshold"`
	DownThreshold   int           `mapstructure:"down_threshold"`
	UpThreshold     int           `mapstructure:"up_threshold"`
	Targets         []string      `mapstructure:"targets"`
}

Jump to

Keyboard shortcuts

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