conf

package
v0.0.0-...-2147667 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() fx.Option

Types

type Conf

type Conf struct {
	ServiceName string `config:"service_name"`

	DBHost   string `config:"db_host"`
	DBPort   int    `config:"db_port"`
	DBName   string `config:"db_name"`
	DBUser   string `config:"db_user"`
	DBPass   string `config:"db_pass"`
	DBSchema string `config:"db_schema"`
}

func New

func New() (*Conf, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳