pushchannelmonitor

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interval               time.Duration
	MinBytesSent           uint64
	ChecksPerInterval      uint32
	RestartBackoff         time.Duration
	MaxConsecutiveRestarts uint32
}

type Monitor

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

Monitor watches the data-rate for push channels, and restarts a channel if the data-rate falls too low

func NewMonitor

func NewMonitor(mgr monitorAPI, cfg *Config) *Monitor

func (*Monitor) AddChannel

func (m *Monitor) AddChannel(chid datatransfer.ChannelID) *monitoredChannel

AddChannel adds a channel to the push channel monitor

func (*Monitor) Shutdown

func (m *Monitor) Shutdown()

func (*Monitor) Start

func (m *Monitor) Start()

Jump to

Keyboard shortcuts

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