client

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 11 Imported by: 0

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

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 (*ClientAuthInterceptor) Unary added in v1.0.0

func (*ClientAuthInterceptor) WrapStreamingClient added in v1.0.0

func (*ClientAuthInterceptor) WrapStreamingHandler added in v1.0.0

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.

func (*ClientAuthInterceptor) WrapUnary added in v1.0.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL