Help us shape the future of Go! Take the 2026 Go Developer Survey

simple

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

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

BasicAuth checks a username and password carried in grpc metadata.

func NewBasicAuth

func NewBasicAuth(username, password string) *BasicAuth

func (*BasicAuth) StreamInterceptor

func (b *BasicAuth) StreamInterceptor(srv any, stream grpc.ServerStream, _ *grpc.StreamServerInfo, handler grpc.StreamHandler) error

func (*BasicAuth) UnaryInterceptor

func (b *BasicAuth) UnaryInterceptor(ctx context.Context, req any, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)

type BasicCredential

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

BasicCredential sends a username and password as grpc metadata.

func NewBasicCredential

func NewBasicCredential(username, password string) *BasicCredential

func (BasicCredential) GetRequestMetadata

func (c BasicCredential) GetRequestMetadata(_ context.Context, _ ...string) (map[string]string, error)

func (BasicCredential) RequireTransportSecurity

func (c BasicCredential) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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