config

package
v0.0.0-...-3ce7e21 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 AuthConfig

type AuthConfig struct {
	AccessSecret string
}

func LoadAuthConfig

func LoadAuthConfig() AuthConfig

type Config

type Config struct {
	Auth AuthConfig
	DB   DBConfig
	HTTP HTTPConfig
}

func NewConfig

func NewConfig() *Config

type DBConfig

type DBConfig struct {
	Driver   string
	User     string
	Password string
	Name     string
	Host     string
	Port     string
}

func LoadDBConfig

func LoadDBConfig() DBConfig

type HTTPConfig

type HTTPConfig struct {
	Host string
	Port string
}

func LoadHTTPConfig

func LoadHTTPConfig() HTTPConfig

Jump to

Keyboard shortcuts

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