config

package
v0.0.0-...-7ecefd1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	CA struct {
		CertFile string `yaml:"cert"`
		KeyFile  string `yaml:"key"`
		KeyPass  string `yaml:"key_pass"`
		SerialDB string `yaml:"db"`
	}
	Cert struct {
		Days int `yaml:"days"`
	}
	Web struct {
		Port         int      `yaml:"port"`
		UseTls       bool     `yaml:"tls"`
		CertFile     string   `yaml:"cert"`
		KeyFile      string   `yaml:"key"`
		Hosts        []string `yaml:"hosts"`
		GenerateCert bool     `yaml:"generate_cert"`
	}
}

func GetConf

func GetConf(file string) (*Conf, error)

Jump to

Keyboard shortcuts

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