Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Verbose bool
Domain string
SOAFqdn string
HostExpirationDays int
ListenFrontend string
ListenBackend string
RedisHost string
RecordTTL int
}
func (*Config) Initialize ¶
func (c *Config) Initialize()
type Host ¶
type Host struct {
Hostname string `redis:"-"`
Ip string `redis:"ip"`
Token string `redis:"token"`
}
func (*Host) GenerateAndSetToken ¶
func (h *Host) GenerateAndSetToken()
type HostBackend ¶
type RedisBackend ¶
type RedisBackend struct {
// contains filtered or unexported fields
}
func NewRedisBackend ¶
func NewRedisBackend(config *Config) *RedisBackend
func (*RedisBackend) Close ¶
func (r *RedisBackend) Close()
func (*RedisBackend) SetHost ¶
func (r *RedisBackend) SetHost(host *Host) error
Click to show internal directories.
Click to hide internal directories.