config

package
v0.0.0-...-a3b2f4c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Acme: Acme{DirectoryURL: "https://acme-v02.api.letsencrypt.org/directory", Storage: Storage{Driver: "filesystem", Options: map[string]string{"path": "./certs"}}},
	Proxy: Proxy{
		Timeout: 120 * time.Second,
	},
}

Functions

This section is empty.

Types

type Acme

type Acme struct {
	DirectoryURL string  `yaml:"directoryUrl"`
	Email        string  `yaml:"email"`
	Storage      Storage `yaml:"storage"`
}

type Config

type Config struct {
	Acme  Acme  `yaml:"acme"`
	Proxy Proxy `yaml:"proxy"`
}

func Get

func Get() Config

type Proxy

type Proxy struct {
	Timeout time.Duration `yaml:"timeout"`
}

type Storage

type Storage struct {
	Driver  string            `yaml:"driver"`
	Options map[string]string `yaml:"options"`
}

Jump to

Keyboard shortcuts

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