github.com/micro/go-micro/v2@v2.9.1/client/wrapper.go (about) 1 package client 2 3 import ( 4 "context" 5 6 "github.com/micro/go-micro/v2/registry" 7 ) 8 9 // CallFunc represents the individual call func 10 type CallFunc func(ctx context.Context, node *registry.Node, req Request, rsp interface{}, opts CallOptions) error 11 12 // CallWrapper is a low level wrapper for the CallFunc 13 type CallWrapper func(CallFunc) CallFunc 14 15 // Wrapper wraps a client and returns a client 16 type Wrapper func(Client) Client 17 18 // StreamWrapper wraps a Stream and returns the equivalent 19 type StreamWrapper func(Stream) Stream