MCPcopy Index your code
hub / github.com/aceld/zinx / GetIMessage

Method GetIMessage

zinterceptor/chain.go:39–52  ·  view source on GitHub ↗

GetIMessage Get IMessage from the Chain (从Chain中获取IMessage)

()

Source from the content-addressed store, hash-verified

37
38// GetIMessage Get IMessage from the Chain (从Chain中获取IMessage)
39func (c *Chain) GetIMessage() ziface.IMessage {
40
41 req := c.Request()
42 if req == nil {
43 return nil
44 }
45
46 iRequest := c.ShouldIRequest(req)
47 if iRequest == nil {
48 return nil
49 }
50
51 return iRequest.GetMessage()
52}
53
54// Next Enter the next chain task with IMessage and decoded data,iMessage is the decoded IMessage response is the decoded data
55// (Next 通过IMessage和解码后数据进入下一个责任链任务, iMessage 为解码后的IMessage, response 为解码后的数据)

Callers

nothing calls this directly

Calls 3

RequestMethod · 0.95
ShouldIRequestMethod · 0.95
GetMessageMethod · 0.65

Tested by

no test coverage detected