config

package
v0.0.0-...-a42c888 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(
	NewConfig,
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Database  Database
	Server    Server
	Profiling Profiling
}

func NewConfig

func NewConfig() *Config

type Database

type Database struct {
	Host               string
	Port               string
	User               string
	Password           string
	Name               string
	Max_db_connections string
	Min_db_connections string
	Max_idle_time      string
}

type Profiling

type Profiling struct {
	Enabled bool
	CPU     string
	Mem     string
}

type Server

type Server struct {
	Port     string
	UseSonic bool
	Prefork  bool
}

Jump to

Keyboard shortcuts

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