config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 3 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 {
	WgConfig struct {
		Eth                 string `yaml:"eth"`
		Dir                 string `yaml:"dir"`
		WGInterfaceTemplate string `yaml:"wgITempFile"`
	} `yaml:"wireguard-config"`
	ServiceConfig struct {
		Domain struct {
			Endpoint string `yaml:"endpoint"`
			Port     uint   `yaml:"port"`
		} `yaml:"domain"`
		TLS struct {
			Enabled  bool   `yaml:"enabled"`
			CertFile string `yaml:"certFile"`
			CertKey  string `yaml:"certKey"`
			CAFile   string `yaml:"caFile"`

			Directory string `yaml:"directory"`
		} `yaml:"tls"`
		Auth struct {
			AKey string `yaml:"aKey"`
			SKey string `yaml:"sKey"`
		} `yaml:"auth"`
	} `yaml:"service-config"`
}

func NewConfig added in v1.0.3

func NewConfig(path string) (*Config, error)

Jump to

Keyboard shortcuts

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