config

package
v0.0.0-...-d43d553 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configs

type Configs struct {
	HTTP     HTTPConfigs
	Postgres PostgresConfigs
	Redis    RedisConfigs
}

func Load

func Load() Configs

type HTTPConfigs

type HTTPConfigs struct {
	Host string
	Port int
}

type PostgresConfigs

type PostgresConfigs struct {
	Host     string
	Port     int
	User     string
	Password string
	DB       string
}

type RedisConfigs

type RedisConfigs struct {
	Host     string
	Port     int
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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