subscriber

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

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

Observer represents a subscriber that mantaines state about probes.

func NewObserver

func NewObserver(names []string, sub *Subscriber) *Observer

NewObserver from probe names and subscriber.

func (*Observer) Error

func (o *Observer) Error() error

Error is the first error observed.

type Subscriber

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

Subscriber subscribes to multiple probes.

func NewSubscriber

func NewSubscriber(names []string) *Subscriber

NewSubscriber for multiple probes.

func (*Subscriber) Receive

func (s *Subscriber) Receive() <-chan *probe.Tick

Receive from the subscriber.

func (*Subscriber) Send

func (s *Subscriber) Send(tick *probe.Tick)

Send tick to subscriber.

Jump to

Keyboard shortcuts

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