apikey

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationHeader       = "Authorization"
	AuthorizationHeaderPrefix = "Bearer"
	Separator                 = "_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Key string
	// contains filtered or unexported fields
}

func NewCredential

func NewCredential(key string, opts ...Option) (Credential, error)

func (Credential) GetRequestMetadata

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

func (Credential) RequireTransportSecurity

func (c Credential) RequireTransportSecurity() bool

type Option

type Option = func(c *Credential)

func WithInsecureTransport

func WithInsecureTransport(insecure bool) Option

Jump to

Keyboard shortcuts

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