state_changed

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncHandler

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

func NewFuncHandler

func NewFuncHandler(f func()) FuncHandler

func (FuncHandler) Handle

func (a FuncHandler) Handle()

type ScoreSender

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

Sends ScoreMessage to all connected peers on score change

func NewScoreSender

func NewScoreSender(peers eachConnected, state state.State) *ScoreSender

func (*ScoreSender) Handle

func (a *ScoreSender) Handle()

type StateChanged

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

func NewStateChanged

func NewStateChanged() *StateChanged

func (*StateChanged) AddHandler

func (a *StateChanged) AddHandler(h types.Handler)

func (*StateChanged) Handle

func (a *StateChanged) Handle()

func (*StateChanged) Len

func (a *StateChanged) Len() int

Jump to

Keyboard shortcuts

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