Documentation ¶
Index ¶
- Constants
- func FmtRequestMessageFileName(seqNum uint64, nanosecond int64) string
- func FmtResponseMessageFileName(seqNum uint64, nanosecond int64) string
- func ParseMessageFileName(fileName string) (retOpType string, retSeqNum uint64, retNanosecond int64, retErr error)
- type MessageContext
- type MessageInfo
- type OnReceivedMessage
Constants ¶
View Source
const ( CoroutineGroupResponder1 = "FileMessage-Responder-listenRequestMessageFile" CoroutineGroupResponder2 = "FileMessage-Responder-processRequestMessage" CoroutineGroupRequester1 = "FileMessage-Requester-listenResponseMessageFile" RequestMsgDirName = "request" ResponseMsgDirName = "response" RequestMsgOpType = "request" ResponseMsgOpType = "response" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageContext ¶
type MessageContext struct {
// contains filtered or unexported fields
}
func NewMessageContext ¶
func NewMessageContext(msgInfo *MessageInfo) *MessageContext
func (*MessageContext) GetEventHook ¶
func (t *MessageContext) GetEventHook() chan uint8
func (*MessageContext) GetMessageInfo ¶
func (t *MessageContext) GetMessageInfo() *MessageInfo
func (*MessageContext) PopEventWithTimeout ¶
func (t *MessageContext) PopEventWithTimeout(timeout time.Duration) (retEvent uint8, retErr error)
func (*MessageContext) PushEvent ¶
func (t *MessageContext) PushEvent(event uint8) error
type MessageInfo ¶
Click to show internal directories.
Click to hide internal directories.