Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecodeRequestFunc ¶
DecodeRequestFunc extracts a user-domain request object from a gRPC request. It's designed to be used in gRPC servers, for server-side endpoints. One straightforward DecodeRequestFunc could be something that decodes from the gRPC request message to the concrete request type.
type EncodeResponseFunc ¶
EncodeResponseFunc encodes the passed response object to the gRPC response message. It's designed to be used in gRPC servers, for server-side endpoints. One straightforward EncodeResponseFunc could be something that encodes the object directly to the gRPC response message.
type ErrorHandler ¶
type ErrorHandlerFunc ¶
type LogErrorHandler ¶
type LogErrorHandler struct {
// contains filtered or unexported fields
}
func NewLogErrorHandler ¶
func NewLogErrorHandler(l *zap.Logger) *LogErrorHandler
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(svc Service, options ...ServerOption) *Server
func NewServer ¶
func NewServer(e Endpoint, options ...ServerOption) *Server
type ServerFinalizerFunc ¶
type ServerOption ¶
type ServerOption func(*Server)
func ServerErrorHandler ¶ added in v0.0.5
func ServerErrorHandler(errorHandler ErrorHandler) ServerOption
func ServerFinalizer ¶ added in v0.0.5
func ServerFinalizer(f ...ServerFinalizerFunc) ServerOption
Source Files
¶
Click to show internal directories.
Click to hide internal directories.