Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidMessage is return if the message is invalid ErrInvalidMessage = errors.New("invalid message") // ErrUndefinedMessage is return if the message is not defined ErrUndefinedMessage = errors.New("undefined message") // ErrFullChannel is returned if the message channel is full ErrFullChannel = errors.New("full channel") )
Functions ¶
This section is empty.
Types ¶
type MsgChans ¶
type MsgChans struct {
// contains filtered or unexported fields
}
func NewMsgChans ¶
func NewMsgChans(bufferLen uint32, ts ...types.MessageType) *MsgChans
type MsgMain ¶
type MsgMain struct {
// contains filtered or unexported fields
}
func NewMsgMain ¶
func NewMsgMain(id string, peerNum uint32, listener types.StateChangedListener, initHandler types.Handler, msgTypes ...types.MessageType) *MsgMain
func (*MsgMain) GetHandler ¶
Click to show internal directories.
Click to hide internal directories.