MCPcopy Create free account
hub / github.com/CPChain/chain / callback

Struct callback

api/rpc/types.go:39–46  ·  view source on GitHub ↗

callback is a method callback which was registered in the server

Source from the content-addressed store, hash-verified

37
38// callback is a method callback which was registered in the server
39type callback struct {
40 rcvr reflect.Value // receiver of method
41 method reflect.Method // callback
42 argTypes []reflect.Type // input argument types
43 hasCtx bool // method's first argument is a context (not included in argTypes)
44 errPos int // err return idx, of -1 when method cannot return error
45 isSubscribe bool // indication if the callback is a subscription
46}
47
48// service represents a registered object
49type service struct {

Callers 1

execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected