watchers

package
v0.0.0-...-614d85d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicPathsWatcher

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

TODO This implementation does not following micro-services design pattern. Might be better to use event-driven paradigm: TODO i.e. pion-manager publishes event upon adding/removing paths, pion-proxy subscribes event to update changes PublicPaths object is used to get latest list of public paths in the Etcd by monitoring changes of the given Etcd key.

func NewPublicPathsWatcher

func NewPublicPathsWatcher(client *etcd.Client) *PublicPathsWatcher

func (PublicPathsWatcher) GetPublicPaths

func (p PublicPathsWatcher) GetPublicPaths() []string

func (*PublicPathsWatcher) Init

func (p *PublicPathsWatcher) Init() error

func (*PublicPathsWatcher) Watch

func (p *PublicPathsWatcher) Watch()

Watch monitors latest changes in the list of public paths

Jump to

Keyboard shortcuts

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