config

package
v0.0.0-...-cb5e776 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 6 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 {
	Logger *Logger `yaml:"logger"`
	HTTP   *HTTP   `yaml:"http"`
}

func Get

func Get(configPath string) (*Config, error)

type HTTP

type HTTP struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

type Logger

type Logger struct {
	Level string `yaml:"level"`
	File  string `yaml:"file"`
}

Jump to

Keyboard shortcuts

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