monitor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMuxer

func NewMuxer(t transport.MonitorTransport)

Types

type Handler

type Handler func(name string, v transport.Var)

Handler handles a change to a subscribed variable. Only one Handler is guarenteed to be firing for a given variable.

type Identity

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

Identity provides the ability to handle incoming monitoring variables from an application with a specific Identity.

func NewIdentity

func NewIdentity(id string, t transport.MonitorTransport) *Identity

NewIdentity is the constructor for Identity.

func (*Identity) Drop

func (s *Identity) Drop(n string) error

Drop tells the service to stop updating us about the variable and then stops all handlers for that variable.

func (*Identity) Subscribe

func (s *Identity) Subscribe(n string, h Handler) error

type Muxer

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

func (*Muxer) Register

func (m *Muxer) Register(id string, v string, h Handler)

func (*Muxer) Serve

func (m *Muxer) Serve()

func (*Muxer) Sub

func (m *Muxer) Sub()

Jump to

Keyboard shortcuts

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