config

package
v0.0.0-...-9c49bb0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 5 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 {
	Server   ServerConfig
	Database DatabaseConfig
}

func LoadConfig

func LoadConfig(filename string) (Config, error)

func LoadConfigPath

func LoadConfigPath(path string) (Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     string
	DBName   string
	UserName string
	Password string
}

type ServerConfig

type ServerConfig struct {
	Port  string
	Debug bool
}

Jump to

Keyboard shortcuts

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