auth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BearerTokenAuth

type BearerTokenAuth struct {
	// contains filtered or unexported fields
}

func NewBearerToken

func NewBearerToken(token string) *BearerTokenAuth

func NewBearerTokenProvider

func NewBearerTokenProvider(provider TokenProvider) *BearerTokenAuth

func (*BearerTokenAuth) GetRequestMetadata

func (b *BearerTokenAuth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*BearerTokenAuth) RequireTransportSecurity

func (b *BearerTokenAuth) RequireTransportSecurity() bool

func (*BearerTokenAuth) StreamInterceptor

func (b *BearerTokenAuth) StreamInterceptor() grpc.StreamClientInterceptor

func (*BearerTokenAuth) UnaryInterceptor

func (b *BearerTokenAuth) UnaryInterceptor() grpc.UnaryClientInterceptor

type TokenProvider

type TokenProvider func() (string, error)

Jump to

Keyboard shortcuts

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