config

package
v0.0.0-...-671f0df Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetText

func GetText(tpl string, c Config) (string, error)

GetText injects config values into template

func SaveToFile

func SaveToFile(tplPath string, c Config, destPath string) error

SaveToFile reads teamplate and writes result to destination file

Types

type Config

type Config struct {
	Port  int
	Proto string

	DNSServerOne string
	DNSServerTwo string

	Ca   string
	Cert string
	Key  string

	Cipher  string
	Keysize int
	Auth    string
	Dh      string

	Server              string
	IfconfigPoolPersist string
	Keepalive           string
	MaxClients          int

	ExtraServerOptions string

	Management string
}

Config model

func New

func New() Config

New returns config object with default values

Jump to

Keyboard shortcuts

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