authenticate

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticate

type Authenticate interface {
	Type() Type
}

type Basic

type Basic struct {
	Username string
	Password string
}

func NewBasic

func NewBasic(username, password string) *Basic

func (Basic) Type

func (t Basic) Type() Type

type Bearer

type Bearer struct {
	Token string
}

func NewBearer

func NewBearer(token string) *Bearer

func (Bearer) Type

func (t Bearer) Type() Type

type Type

type Type string
const (
	BearerType Type = "Bearer"
	BasicType  Type = "Basic"
)

Jump to

Keyboard shortcuts

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