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
Click to show internal directories.
Click to hide internal directories.