config

package
v0.0.0-...-9fe134c Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 1 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 {
	Env string `yaml:"env"`
	Db  struct {
		Type         string `yaml:"type"`
		MaxIdleConns int    `yaml:"max-idle-conns"`
		MaxOpenConns int    `yaml:"max-open-conns"`
		Port         string `yaml:"port"`
		Host         string `yaml:"host"`
		TablePrefix  string `yaml:"table_prefix"`
		Database     string `yaml:"database"`
		User         string `yaml:"name"`
		PassWord     string `yaml:"password"`
	}
	MyJwt struct {
		Secret    string `yaml:"secret"`
		ExpiresAt int64  `yaml:"expires_at"`
	}
	App struct {
		Host       string `yaml:"host"`
		Port       string `yaml:"port"`
		UploadFile string `yaml:"uploadFile"`
	}
	Rate struct {
		Limit rate.Limit `yaml:"limit"`
		Burst int        `yaml:"burst"`
	}
	Logger struct {
		Drive  string `yaml:"drive"`
		Path   string `yaml:"path"`
		Size   int    `yaml:"size"`
		MaxAge int    `yaml:"maxAge"`
		StdOut bool   `yaml:"stdOut"`
	}
}

Jump to

Keyboard shortcuts

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