srcache

package
v0.0.0-...-6cd304b Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SamplerateCache

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

SamplerateCache caches information about samplerates

func New

func New(agents []config.Agent) *SamplerateCache

New creates a new SamplerateCache and initializes it with values from the config

func (*SamplerateCache) Get

func (s *SamplerateCache) Get(rtr net.IP) uint64

Get gets a cache entry

func (*SamplerateCache) Set

func (s *SamplerateCache) Set(rtr net.IP, rate uint64)

Set updates a cache entry

Jump to

Keyboard shortcuts

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