Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthManager ¶
type AuthManager interface { AddUser(user string, group string, password string) error DeleteUser(user string) error DoAuth(w http.ResponseWriter, r *http.Request) (*AuthData, int) }
func NewAuth ¶
func NewAuth(kind string) AuthManager
func NewBasicAuth ¶
func NewBasicAuth() AuthManager
func NewNoAuth ¶
func NewNoAuth() AuthManager
type Authenticator ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
func (*BasicAuth) DeleteUser ¶
type BasicAuthInfo ¶
type NoAuth ¶
type NoAuth struct {
User AuthData
}
----------------------------------------------------------------------------------------------------------------------
func (*NoAuth) DeleteUser ¶
type TokenAuth ¶
type TokenAuth struct {
// contains filtered or unexported fields
}
----------------------------------------------------------------------------------------------------------------------
func NewTokenAuth ¶
func NewTokenAuth() *TokenAuth
func (*TokenAuth) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.