observer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeLevel = iota
	ModeEdge
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanObserver

type ChanObserver struct {
	C chan interface{}
	// contains filtered or unexported fields
}

func NewChanObserver

func NewChanObserver(options ...ChanObserverOption) *ChanObserver

func (*ChanObserver) Update

func (co *ChanObserver) Update(data interface{})

type ChanObserverOption

type ChanObserverOption func(*ChanObserver)

func ChanObserverOptionMode

func ChanObserverOptionMode(mode Mode) ChanObserverOption

type Mode

type Mode int

type Observer

type Observer interface {
	Update(data interface{})
}

Jump to

Keyboard shortcuts

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