controlpointcache

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPoint

type ControlPoint struct {
	Name    string
	Service string
}

ControlPoint represents control point kept in the cache.

type ControlPointCache

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

ControlPointCache keeps information about control points their services.

func NewControlPointCache

func NewControlPointCache() *ControlPointCache

NewControlPointCache returns new instance of control point cache.

func Provide

func Provide() *ControlPointCache

Provide provides control point cache.

func (*ControlPointCache) GetAllAndClear

func (c *ControlPointCache) GetAllAndClear() map[ControlPoint]struct{}

GetAllAndClear returns the current state of cache and clears the cache.

func (*ControlPointCache) Put

func (c *ControlPointCache) Put(name, service string)

Put inserts control point with given name and service.

Jump to

Keyboard shortcuts

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