Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
AuthInterceptor is a struct for holding the token and adding it to each request.
func NewAuthInterceptor ¶
func NewAuthInterceptor( tokenFactory *authn.TokenFactory, targetNodeID uint32, ) *AuthInterceptor
func (*AuthInterceptor) Stream ¶
func (i *AuthInterceptor) Stream() grpc.StreamClientInterceptor
func (*AuthInterceptor) Unary ¶
func (i *AuthInterceptor) Unary() grpc.UnaryClientInterceptor
Unary method to intercept requests and inject the token into headers.
Click to show internal directories.
Click to hide internal directories.