config

package
v0.0.0-...-35d8768 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 3 Imported by: 0

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

	Ca   string
	Cert string
	Key  string
	Ta   string

	Cipher             string
	Keysize            int
	Auth               string
	ExtraClientOptions 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