Documentation
¶
Overview ¶
Package client implements the authentication interceptors for the client. The auth interceptors are used mostly for gRPC clients. We also have support for connect-go clients for future proofing.
Index ¶
- type ClientAuthInterceptor
- func (i *ClientAuthInterceptor) Stream() grpc.StreamClientInterceptor
- func (i *ClientAuthInterceptor) Unary() grpc.UnaryClientInterceptor
- func (i *ClientAuthInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
- func (i *ClientAuthInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
- func (i *ClientAuthInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAuthInterceptor ¶ added in v1.0.0
type ClientAuthInterceptor struct {
// contains filtered or unexported fields
}
ClientAuthInterceptor is a struct for holding the token and adding it to each request.
func NewClientAuthInterceptor ¶ added in v1.0.0
func NewClientAuthInterceptor( tokenFactory authn.TokenFactory, targetNodeID uint32, ) *ClientAuthInterceptor
NewClientAuthInterceptor creates a new AuthInterceptor.
func (*ClientAuthInterceptor) Stream ¶ added in v1.0.0
func (i *ClientAuthInterceptor) Stream() grpc.StreamClientInterceptor
func (*ClientAuthInterceptor) Unary ¶ added in v1.0.0
func (i *ClientAuthInterceptor) Unary() grpc.UnaryClientInterceptor
func (*ClientAuthInterceptor) WrapStreamingClient ¶ added in v1.0.0
func (i *ClientAuthInterceptor) WrapStreamingClient( next connect.StreamingClientFunc, ) connect.StreamingClientFunc
func (*ClientAuthInterceptor) WrapStreamingHandler ¶ added in v1.0.0
func (i *ClientAuthInterceptor) WrapStreamingHandler( next connect.StreamingHandlerFunc, ) connect.StreamingHandlerFunc
WrapStreamingHandler is a no-op for client interceptors. It's only implemented to satisfy the connect.Interceptor interface. This method is never called on the client side.
Click to show internal directories.
Click to hide internal directories.