Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "admiral.middleware.errorintercept"
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg *anypb.Any, logger *zap.Logger, scope tally.Scope) (middleware.Middleware, error)
Types ¶
type Interceptor ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func (*Middleware) AddInterceptor ¶
func (m *Middleware) AddInterceptor(fn errorInterceptorFunc)
AddInterceptor is used during gateway start to register any service that implements the Interceptor interface.
func (*Middleware) UnaryInterceptor ¶
func (m *Middleware) UnaryInterceptor() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.