Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CarryMetadata ¶ added in v0.39.0
CarryMetadata extracts relevant metadata from the incoming context and append that to the outgoing context.
func HeaderMatcher ¶ added in v0.34.0
HeaderMatcher is a custom header matcher for GRPC gateway.
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor is an authentication interceptor.
func NewInterceptor ¶
func NewInterceptor(ctx context.Context, rbacServerAddr, accessResource string) (*Interceptor, error)
NewInterceptor creates a new Interceptor.
func (*Interceptor) InterceptHTTPRequest ¶ added in v0.22.0
InterceptHTTPRequest intercepts an HTTP request and returns an HTTP status code.
func (*Interceptor) Unary ¶
func (a *Interceptor) Unary() grpc.UnaryServerInterceptor
Unary returns a unary server interceptor.
Click to show internal directories.
Click to hide internal directories.