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

Function isHandlerMethod

component/method.go:98–128  ·  view source on GitHub ↗

isHandlerMethod decide a method is suitable handler method 如果是符合本地消息响应的类型Handler类型的方法则返回true 有一个或者两个参数 第一个是context.Context 第二个是[]byte or ptr 有0个或者两个返回值 2个的时候是 ptr和error func (r *Room) Join(ctx context.Context) (*JoinResponse, error) func (r *Room) Join(ctx context.Context, []byte) (*JoinResponse, er

(method reflect.Method)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

suitableHandlerMethodsFunction · 0.85
TestIsHandleMethodFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsHandleMethodFunction · 0.68