model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Config    Config
	BuildInfo BuildInfo
}

type BuildInfo

type BuildInfo struct {
	BuildTime time.Time
	Commit    string
	Version   string
}

type Config

type Config struct {
	DnsmasqConfig     string         `mapstructure:"dnsmasq_config"`
	DB                DatabaseConfig `mapstructure:"db"`
	Logging           LoggingConfig  `mapstructure:"logging"`
	Port              int            `mapstructure:"port"`
	SkipDNSMasqReload bool           `mapstructure:"skip_dnsmasq_reload"`
	SSL               SSLConfig      `mapstructure:"ssl"`
}

type DNSRecord

type DNSRecord struct {
	Hostname string `json:"hostname"`
	IP       string `json:"ip"`
}

type DatabaseConfig

type DatabaseConfig struct {
	FilePath   string `mapstructure:"file_path"`
	BucketName string `mapstructure:"bucket_name"`
}

type LoggingConfig

type LoggingConfig struct {
	Level    string `mapstructure:"level"`
	Output   string `mapstructure:"output"`
	FilePath string `mapstructure:"file_path"`
}

type SSLConfig

type SSLConfig struct {
	Enabled  bool   `mapstructure:"enabled"`
	CertFile string `mapstructure:"cert_file"`
	KeyFile  string `mapstructure:"key_file"`
}

type SetDNSRecordRequest

type SetDNSRecordRequest struct {
	IPs []string `json:"ips"`
}

Jump to

Keyboard shortcuts

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