Update documentation on jsonrpc2.NewDispatchHandler

This commit is contained in:
Brian Picciano 2024-09-05 19:36:21 +02:00
parent 8d3b17e1cb
commit fed79c6ec7

View File

@ -79,7 +79,8 @@ type dispatcher struct {
// value to dispatch RPC calls. The passed in value must be a pointer. All
// exported methods which look like:
//
// MethodName(context.Context, ParamType) (ResponseType, error)
// MethodName(context.Context, ...ParamType) (ResponseType, error)
// MethodName(context.Context, ...ParamType) error
//
// will be available via RPC calls.
func NewDispatchHandler(i any) Handler {