MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / ValidateMessageType

Method ValidateMessageType

component/service.go:169–181  ·  view source on GitHub ↗

ValidateMessageType validates a given message type against the handler's one and returns an error if it is a mismatch and a boolean indicating if the caller should exit in the presence of this error or not.

(msgType message.Type)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestValidateMessageTypeFunction · 0.80
processHandlerMessageFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValidateMessageTypeFunction · 0.64