config

package
v0.0.0-...-d36953e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 3 Imported by: 4

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 {
	Dev   string
	Port  int
	Proto string

	Ca   string
	Cert string
	Key  string

	Cipher  string
	Keysize int
	Auth    string
	Dh      string

	DNSServerOne        string
	DNSServerTwo        string
	Server              string
	IfconfigPoolPersist string
	Keepalive           string
	CCEncryption        string

	ExtraServerOptions string
	ExtraClientOptions string

	Management string

	PiVPNServer 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