Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGratefulStop = errors.New("no error ocurred but the app should be stopped") ErrWithoutMessage = errors.New("an error ocurred but no message is required") )
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { APIKey string `` /* 166-byte string literal not displayed */ APIToken string `short:"t" long:"token" value-name:"<token>" description:"API token" env:"CF_TOKEN"` Domains []string `` /* 132-byte string literal not displayed */ Email string `` /* 141-byte string literal not displayed */ ForceUpdate bool `short:"f" long:"force" description:"Force update even if the IP didn't change" env:"CF_FORCE_UPDATE"` RefreshTime time.Duration `` /* 226-byte string literal not displayed */ Resolvers []string `` /* 145-byte string literal not displayed */ LogInJSONFormat bool `long:"json-log" description:"Format log as JSON" env:"CF_JSON_LOG"` OnlyIPv4 bool `short:"4" long:"only-ipv4" description:"Only use IPv4 (A records)" env:"CF_ONLY_IPV4"` OnlyIPv6 bool `short:"6" long:"only-ipv6" description:"Only use IPv6" env:"CF_ONLY_IPV6"` NoColors bool `long:"disable-colors" description:"disables colored output, always true for json log" env:"CF_DISABLE_COLORS"` PrintVersion bool `short:"v" long:"version" description:"Print program version and exit"` }
Options program options
Click to show internal directories.
Click to hide internal directories.