config

package
v0.0.0-...-148c040 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName = "indns"
	Prefix  = "/opt/sysinner/indns"
	Config  = ConfigCommon{}
	Version = ""
	Release = ""
	Records = ConfigRecordManager{
			// contains filtered or unexported fields
	}
)

Functions

func Setup

func Setup(ver, rel string) error

Types

type ConfigCommon

type ConfigCommon struct {
	Server struct {
		Bind            string   `toml:"bind"`
		NameServers     []string `toml:"name_servers"`
		ConfigDirectory string   `toml:"config_directory"`
	} `toml:"server"`
}

type ConfigRecordEntry

type ConfigRecordEntry struct {
	Version int64
	Name    string
	IPs     []net.IP
}

type ConfigRecordManager

type ConfigRecordManager struct {
	// contains filtered or unexported fields
}

func (*ConfigRecordManager) Get

func (it *ConfigRecordManager) Get(name string) []net.IP

type ConfigZone

type ConfigZone struct {
	Records []*ConfigZoneRecord `toml:"records"`
}

type ConfigZoneRecord

type ConfigZoneRecord struct {
	Name string   `toml:"name"`
	IPs  []net.IP `toml:"ips"`
}

Jump to

Keyboard shortcuts

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