Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator interface {
io.Closer
AuthUser(hash string) (valid bool, user User)
AddUser(password, hash string) error
DelUser(hash string) error
ListUsers() []User
}
func NewAuthenticator ¶
func NewAuthenticator(ctx context.Context, name string) (Authenticator, error)
type IPRecorder ¶
type TrafficMeter ¶
type User ¶
type User interface {
TrafficMeter
IPRecorder
}
Click to show internal directories.
Click to hide internal directories.