Documentation ¶
Overview ¶
Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php
Index ¶
- func RlpFnvHash(data interface{}) uint64
- type MessageChecker
- type MessageSend
- type MessageStatePool
- func (ms *MessageStatePool) Quit()
- func (ms *MessageStatePool) Require(key RequireInfo)
- func (ms *MessageStatePool) RunLoop()
- func (ms *MessageStatePool) SetMessageChecker(checker MessageChecker)
- func (ms *MessageStatePool) SetStateChan(stateChan chan MessageSend)
- func (ms *MessageStatePool) SubscribeEvent(aim mc.EventCode, ch interface{}) error
- type MessgeStateInterface
- type RequireInfo
- type SubScribeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RlpFnvHash ¶
func RlpFnvHash(data interface{}) uint64
Types ¶
type MessageChecker ¶
type MessageChecker interface {
// contains filtered or unexported methods
}
MessageChecker is an interface to verify message value and decode Round Number
type MessageSend ¶
send into state channel
type MessageStatePool ¶
type MessageStatePool struct {
// contains filtered or unexported fields
}
an simple Message state process
func NewMessageStatePool ¶
func NewMessageStatePool(roundCapacity, messageCapacity int, checker MessageChecker) *MessageStatePool
func (*MessageStatePool) Quit ¶
func (ms *MessageStatePool) Quit()
func (*MessageStatePool) Require ¶
func (ms *MessageStatePool) Require(key RequireInfo)
func (*MessageStatePool) RunLoop ¶
func (ms *MessageStatePool) RunLoop()
func (*MessageStatePool) SetMessageChecker ¶
func (ms *MessageStatePool) SetMessageChecker(checker MessageChecker)
func (*MessageStatePool) SetStateChan ¶
func (ms *MessageStatePool) SetStateChan(stateChan chan MessageSend)
func (*MessageStatePool) SubscribeEvent ¶
func (ms *MessageStatePool) SubscribeEvent(aim mc.EventCode, ch interface{}) error
type MessgeStateInterface ¶
type MessgeStateInterface interface { SubscribeEvent(aim mc.EventCode, ch interface{}) error SetStateChan(stateChan chan MessageSend) SetMessageChecker(checker MessageChecker) Require(RequireInfo) RunLoop() Quit() }
type RequireInfo ¶
type RequireInfo struct {
// contains filtered or unexported fields
}
subscribe from messageCenter package
type SubScribeInfo ¶
Click to show internal directories.
Click to hide internal directories.