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 (a AuthorizerGuest) Credentials() configuration.Authorization
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
Click to show internal directories.
Click to hide internal directories.