Documentation ¶
Index ¶
- type Handler
- func (_m *Handler) Finalize(logger log.Logger) (types.Handler, error)
- func (_m *Handler) GetRequiredMessageCount() uint32
- func (_m *Handler) HandleMessage(logger log.Logger, msg types.Message) error
- func (_m *Handler) IsHandled(logger log.Logger, id string) bool
- func (_m *Handler) MessageType() types.MessageType
- type Message
- type MessageMain
- type PeerManager
- type StateChangedListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func NewHandler ¶
func NewHandler(t mockConstructorTestingTNewHandler) *Handler
NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Handler) GetRequiredMessageCount ¶
GetRequiredMessageCount provides a mock function with given fields:
func (*Handler) HandleMessage ¶
HandleMessage provides a mock function with given fields: logger, msg
func (*Handler) MessageType ¶
func (_m *Handler) MessageType() types.MessageType
MessageType provides a mock function with given fields:
type Message ¶
Message is an autogenerated mock type for the Message type
func NewMessage ¶
func NewMessage(t mockConstructorTestingTNewMessage) *Message
NewMessage creates a new instance of Message. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Message) GetMessageType ¶
func (_m *Message) GetMessageType() types.MessageType
GetMessageType provides a mock function with given fields:
type MessageMain ¶
MessageMain is an autogenerated mock type for the MessageMain type
func NewMessageMain ¶
func NewMessageMain(t mockConstructorTestingTNewMessageMain) *MessageMain
NewMessageMain creates a new instance of MessageMain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MessageMain) AddMessage ¶
func (_m *MessageMain) AddMessage(senderId string, msg types.Message) error
AddMessage provides a mock function with given fields: senderId, msg
func (*MessageMain) GetHandler ¶
func (_m *MessageMain) GetHandler() types.Handler
GetHandler provides a mock function with given fields:
func (*MessageMain) GetState ¶
func (_m *MessageMain) GetState() types.MainState
GetState provides a mock function with given fields:
func (*MessageMain) Start ¶
func (_m *MessageMain) Start()
Start provides a mock function with given fields:
func (*MessageMain) Stop ¶
func (_m *MessageMain) Stop()
Stop provides a mock function with given fields:
type PeerManager ¶
PeerManager is an autogenerated mock type for the PeerManager type
func NewPeerManager ¶
func NewPeerManager(t mockConstructorTestingTNewPeerManager) *PeerManager
NewPeerManager creates a new instance of PeerManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PeerManager) MustSend ¶
func (_m *PeerManager) MustSend(id string, msg interface{})
MustSend provides a mock function with given fields: id, msg
func (*PeerManager) NumPeers ¶
func (_m *PeerManager) NumPeers() uint32
NumPeers provides a mock function with given fields:
func (*PeerManager) PeerIDs ¶
func (_m *PeerManager) PeerIDs() []string
PeerIDs provides a mock function with given fields:
func (*PeerManager) SelfID ¶
func (_m *PeerManager) SelfID() string
SelfID provides a mock function with given fields:
type StateChangedListener ¶
StateChangedListener is an autogenerated mock type for the StateChangedListener type
func NewStateChangedListener ¶
func NewStateChangedListener(t mockConstructorTestingTNewStateChangedListener) *StateChangedListener
NewStateChangedListener creates a new instance of StateChangedListener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StateChangedListener) OnStateChanged ¶
func (_m *StateChangedListener) OnStateChanged(oldState types.MainState, newState types.MainState)
OnStateChanged provides a mock function with given fields: oldState, newState