authorization

package
v0.0.0-...-8385e2e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const APIPathSuffixAuthGuest = "guestAuth"
View Source
const APIPathSuffixAuthHTTP = "httpAuth"
View Source
const APIPathSuffixAuthToken = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizerGuest

type AuthorizerGuest struct{}

AuthorizerGuest should be used for guest authorization mode.

func NewAuthorizerGuest

func NewAuthorizerGuest() AuthorizerGuest

NewAuthorizerGuest creates an Authorizer for non-authorized access.

func (AuthorizerGuest) Credentials

func (AuthorizerGuest) ProvideURLAuthSuffix

func (a AuthorizerGuest) ProvideURLAuthSuffix() string

type AuthorizerHTTP

type AuthorizerHTTP struct {
	Username, Password string
}

func NewAuthorizerHTTP

func NewAuthorizerHTTP(username, password string) AuthorizerHTTP

func (AuthorizerHTTP) ProvideURLAuthSuffix

func (a AuthorizerHTTP) ProvideURLAuthSuffix() string

type AuthorizerToken

type AuthorizerToken struct {
	Token string
}

func NewAuthorizerToken

func NewAuthorizerToken(token string) AuthorizerToken

func (AuthorizerToken) ProvideURLAuthSuffix

func (a AuthorizerToken) ProvideURLAuthSuffix() string

Jump to

Keyboard shortcuts

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