config

package
v0.0.0-...-2b140d7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct {
	Domain string `yaml:"domain"`
	Http   Http   `yaml:"http"`
	Dns    Dns    `yaml:"dns"`
}

type Client

type Client struct {
	ServerUrl string `yaml:"server_url"`
}

type Config

type Config struct {
	Server Server `yaml:"server"`
	Client Client `yaml:"client"`
}

func LoadConfig

func LoadConfig(path string) *Config

type Database

type Database struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	DbName   string `yaml:"dbname"`
}

type Dns

type Dns struct {
	Port               int    `yaml:"port"`
	DefaultAResponse   string `yaml:"default_A_response"`
	DefaultTXTResponse string `yaml:"default_TXT_response"`
	AcmeChallengePath  string `yaml:"acme_challenge_path"`
}

type Http

type Http struct {
	Port           int    `yaml:"port"`
	DefaultReponse string `yaml:"default_response"`
}

type Server

type Server struct {
	Callback Callback `yaml:"callback"`
	Web      Web      `yaml:"web"`
	Database Database `yaml:"db"`
}

type Web

type Web struct {
	Port int `yaml:"port"`
}

Jump to

Keyboard shortcuts

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