config

package
v0.0.0-...-a481549 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(file string, envPrefix string)

Types

type Config

type Config struct {
	// Add config item to here
	Env     string  `yaml:"env"`
	HTTP    HTTP    `yaml:"http"`
	Logging Logging `yaml:"logging"`
}
var Conf *Config

type HTTP

type HTTP struct {
	Listen  string `yaml:"listen"`
	TLSKey  string `yaml:"tlsKey"`
	TLSCert string `yaml:"tlsCert"`
}

type Logging

type Logging struct {
	Level string `yaml:"level"`
}

Jump to

Keyboard shortcuts

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