basic

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPerRPCCredentials

func NewPerRPCCredentials(userID, password string) credentials.PerRPCCredentials

Types

type Credentials

type Credentials struct {
	UserID   string
	Password string
}

func CredentialsFromContext

func CredentialsFromContext(ctx context.Context) (Credentials, error)

func (Credentials) GetRequestMetadata

func (c Credentials) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (Credentials) RequireTransportSecurity

func (c Credentials) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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