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, bool) }
func NewAuth ¶
func NewAuth(kind string) AuthManager
func NewBasicAuth ¶
func NewBasicAuth() AuthManager
func NewNoAuth ¶
func NewNoAuth() AuthManager
type Authenticator ¶ added in v0.2.0
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
type NoAuth ¶
type NoAuth struct {
User AuthData
}
----------------------------------------------------------------------------------------------------------------------
Click to show internal directories.
Click to hide internal directories.