Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConfigFilename = "http.yaml"
)
Config Constants
Functions ¶
func IsBcryptHash ¶ added in v1.48.0
IsBcryptHash checks if a string is already a bcrypt hash
func IsSHA256Hash ¶ added in v1.48.0
IsSHA256Hash checks if a string is a 64-character hex string (SHA-256)
Types ¶
type Config ¶
type Config struct {
Port int `yaml:"port,omitempty"`
LimitPerSecond int `yaml:"limitPerSecond,omitempty"`
LoginLimitPerSecond int `yaml:"loginLimitPerSecond,omitempty"`
Users []UserAuth `yaml:"users,omitempty"`
SignInExpireDays int `yaml:"signInExpireDays,omitempty"`
Links []link `yaml:"links,omitempty"`
LinkRetry int `yaml:"linkRetry,omitempty"`
TwoFactorTimeoutSec int `yaml:"twoFactorTimeoutSec,omitempty"`
LoginSigningKey string `yaml:"loginSigningKey,omitempty"`
}
Config contains the parameters for Http
func (*Config) SecureConfig ¶ added in v1.48.0
SecureConfig updates the yaml config with hashed passwords
Click to show internal directories.
Click to hide internal directories.