tildewatch/types.go

32 lines
468 B
Go
Raw Normal View History

2023-07-24 21:54:56 -04:00
package main
import "github.com/go-gandi/go-gandi/config"
type User struct {
Hostname string `yaml:"hostname"`
Secret string `yaml:"secret"`
}
type Config struct {
Users []User `yaml:"users"`
}
type Request struct {
IPAddr string `json:"ipaddr"`
Secret string `json:"secret"`
}
type Registration struct {
IPAddr string
Domain string
Update bool
}
type Watch struct {
Tildes map[string]Registration
debug bool
domain string
conf config.Config
}