static

package
v0.0.0-...-cca628e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 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 Config

type Config struct {
	MySQL struct {
		DSN             string        `toml:"dsn"`
		MaxIdleConns    int           `toml:"max_idle_conns"`
		MaxOpenConns    int           `toml:"max_open_conns"`
		MaxConnLifeTime time.Duration `toml:"max_conn_life_time"`
	} `toml:"mysql""`
}

func ReadConfig

func ReadConfig() (Config, error)

ReadConfig read static config

Jump to

Keyboard shortcuts

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