traffic

package
v0.0.0-...-845418e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewManager

func NewManager(publishPrefix string) *Manager

publishing/updating per category traffic/speed stats

func (*Manager) Publish

func (m *Manager) Publish()

func (*Manager) Recalculate

func (m *Manager) Recalculate(recalcInterval uint64)

func (*Manager) SetBacklogSize

func (m *Manager) SetBacklogSize(size int64)

func (*Manager) SetUpstreamStatus

func (m *Manager) SetUpstreamStatus(name string, up bool)

func (*Manager) Update

func (m *Manager) Update(events []*lsdProto.RequestNewEventsEventT)

Jump to

Keyboard shortcuts

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