Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the handler that handles unary operations
func New ¶
func New(methodHandler map[string]UnaryHandler, interceptors ...Interceptor) (*Handler, error)
New creates a new handler
type Interceptor ¶
type Interceptor = func(ctx context.Context, req interface{}, info *UnaryServerInfo, handler UnaryHandler) (interface{}, error)
Interceptor is the interceptor that handles any incoming request
func MultiInterceptors ¶
func MultiInterceptors(interceptors ...Interceptor) Interceptor
MultiInterceptors is used to handle multiple interceptors
type UnaryHandler ¶
UnaryHandler is the handler that handles unary operations
type UnaryServerInfo ¶
type UnaryServerInfo struct { // FullMethod is the method name FullMethod string }
UnaryServerInfo is the server info
Click to show internal directories.
Click to hide internal directories.