Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminCredentialStore ¶
type AdminCredentialStore interface {
Load() (username string, passwordHash string, found bool, err error)
Save(username string, passwordHash string) error
}
AdminCredentialStore persists the admin login account used by the admin console.
type BoltAdminStore ¶
type BoltAdminStore struct {
// contains filtered or unexported fields
}
func NewBoltAdminStore ¶
func NewBoltAdminStore(path string) *BoltAdminStore
type Config ¶
type Config struct {
Credentials *credential.StaticCredentialStore
UserStore credential.PersistentStore
AdminStore AdminCredentialStore
TrafficStore traffic.Store
Tracker *traffic.Tracker
CookieSecure bool
MaxLoginAttempts int
LoginWindow time.Duration
LockoutDuration time.Duration
AllowedOrigins []string
Logger *zerolog.Logger
}
Click to show internal directories.
Click to hide internal directories.