comm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolNotifier

type BoolNotifier interface {
	Notifier
	Value() bool
}

type BytesNotifier

type BytesNotifier interface {
	Notifier
	Value() []byte
}

type ColorNotifier

type ColorNotifier interface {
	Notifier
	Value() color.Color
}

type DurationNotifier

type DurationNotifier interface {
	Notifier
	Value() time.Duration
}

type Float64Notifier

type Float64Notifier interface {
	Notifier
	Value() float64
}

type Float64Value

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

func NewFloat64Value

func NewFloat64Value(val float64) *Float64Value

func (*Float64Value) Notify

func (v *Float64Value) Notify(f func()) Id

func (*Float64Value) SetValue

func (v *Float64Value) SetValue(val float64)

func (*Float64Value) Unnotify

func (v *Float64Value) Unnotify(id Id)

func (*Float64Value) Value

func (v *Float64Value) Value() float64

type Id

type Id int64

type Int64Notifier

type Int64Notifier interface {
	Notifier
	Value() int64
}

type IntNotifier

type IntNotifier interface {
	Notifier
	Value() int
}

type InterfaceNotifier

type InterfaceNotifier interface {
	Notifier
	Value() interface{}
}

type Notifier

type Notifier interface {
	Notify(func()) Id
	Unnotify(Id)
}

type Relay

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

func (*Relay) Notify

func (r *Relay) Notify(f func()) Id

func (*Relay) Signal

func (r *Relay) Signal()

func (*Relay) Subscribe

func (r *Relay) Subscribe(n Notifier)

func (*Relay) Unnotify

func (r *Relay) Unnotify(id Id)

func (*Relay) Unsubscribe

func (r *Relay) Unsubscribe(n Notifier)

type StringNotifier

type StringNotifier interface {
	Notifier
	Value() string
}

type Uint64Notifier

type Uint64Notifier interface {
	Notifier
	Value() uint64
}

type UintNotifier

type UintNotifier interface {
	Notifier
	Value() uint
}

Jump to

Keyboard shortcuts

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