cfg

package
v0.0.0-...-f79d00e Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Servers map[string]Server `yaml:"servers"`
}

Config from the file

func LoadFileConfig

func LoadFileConfig(fileName string) (Config, error)

LoadFileConfig loads the configuration from the file

type Server

type Server struct {
	Listen      string `yaml:"listen"`
	Certificate string `yaml:"certificate"`
	PrivateKey  string `yaml:"privateKey"`
}

Server configuration

Jump to

Keyboard shortcuts

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