config

package
v0.0.0-...-41fdd36 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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 {
	Port  int
	Proto string

	Ca   string
	Cert string
	Key  string

	Cipher  string
	Keysize int
	Auth    string
	Dh      string

	Server              string
	IfconfigPoolPersist string
	Keepalive           string
	MaxClients          int

	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