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

Method ExtractHandler

component/service.go:97–127  ·  view source on GitHub ↗

ExtractHandler extract the set of methods from the receiver value which satisfy the following conditions: - exported method of exported type - one or two arguments - the first argument is context.Context - the second argument (if it exists) is []byte or a pointer - zero or two outputs - the first ou

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

TestExtractHandlerFunction · 0.95
TestValidateMessageTypeFunction · 0.95
TestHandlersDocFunction · 0.95
TestHandlersDocTrueFunction · 0.95
RegisterMethod · 0.80

Calls 3

isExportedFunction · 0.85
suitableHandlerMethodsFunction · 0.85
StringMethod · 0.45

Tested by 4

TestExtractHandlerFunction · 0.76
TestValidateMessageTypeFunction · 0.76
TestHandlersDocFunction · 0.76
TestHandlersDocTrueFunction · 0.76