config

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultInterval = 60
View Source
const DefaultPIP = "https://ipecho.net/plain"
View Source
const DefaultPath = "dogodns.yaml"
View Source
const DefaultTTL = 300

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Domain   *string  `yaml:"domain,omitempty"`
	Domains  []string `yaml:"domains"`
	Token    string   `yaml:"token"`
	PIP      string   `yaml:"pip"`
	Interval int      `yaml:"interval"`
	TTL      int      `yaml:"ttl"`
}

func DefaultConfig

func DefaultConfig(domain, token string) *Config

func (*Config) GetDomains

func (c *Config) GetDomains() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳