auth

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Status     bool              `json:"status"`
	Type       Type              `json:"type"`
	Parameters map[string]string `json:"parameters"`
}

func NewAuth

func NewAuth(status bool, typ Type, parameters map[string]string) *Auth

func NewAuthEmpty

func NewAuthEmpty(status bool, typ Type) *Auth

func (*Auth) PutParam

func (a *Auth) PutParam(key, value string) *Auth

type Auths

type Auths struct {
	Status bool            `json:"status"`
	Auths  map[string]Auth `json:"auths"`
}

func NewAuths

func NewAuths(status bool) *Auths

func (*Auths) PutAuth

func (a *Auths) PutAuth(auth Auth) *Auths

type Type

type Type string
const (
	None   Type = "NONE"
	Basic  Type = "BASIC"
	Bearer Type = "BEARER"
)

func TypeFromString

func TypeFromString(typ string) (Type, bool)

func (Type) String

func (t Type) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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