Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEchoServiceServer ¶
func NewEchoServiceServer() *echoServiceServer
Types ¶
type ErrorMapper ¶
type Interceptor ¶
type Interceptor interface {
Run() grpc.UnaryServerInterceptor
}
Interceptor: chained in the order the caller lists them, outermost first. status (error→gRPC code mapping) has to sit inside tracing and log so they record the mapped code, not the raw error.
type Interceptors ¶ added in v1.6.1
type Interceptors []Interceptor
Interceptors is the chain, in order. Named, so it is one replaceable thing rather than an argument every registration has to repeat.
type StreamInterceptor ¶
type StreamInterceptor interface {
Run() grpc.StreamServerInterceptor
}
type StreamInterceptors ¶ added in v1.6.1
type StreamInterceptors []StreamInterceptor
Click to show internal directories.
Click to hide internal directories.