config

package
v0.0.0-...-9bcce1a Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token    string   `json:"token,omitempty"`
	Domains  *Domains `json:"domains,omitempty"`
	IPSource string   `json:"ipSource,omitempty"`
	TTL      int      `json:"ttl,omitempty"`
	Cache    bool     `json:"cache,omitempty"`
	Proxy    string   `json:"proxy,omitempty"`
}

func Load

func Load() (*Config, *time.Time, error)

type Domains

type Domains struct {
	IPv4 []string `json:"ipv4,omitempty"`
	IPv6 []string `json:"ipv6,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL