config

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 0 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 {
	App struct {
		Name    string `yaml:"name"`
		Version string `yaml:"version"`
	} `yaml:"app"`
	Server struct {
		Port string `yaml:"port"`
		Host string `yaml:"host"`
		Path string `yaml:"path"`
	} `yaml:"server"`
	File struct {
		Path  string `yaml:"path"`
		Cache int    `yaml:"cache"`
	} `yaml:"file"`
	Limit struct {
		Required bool `yaml:"required"`
		Rate     int  `yaml:"rate"`
		Bucket   int  `yaml:"bucket"`
	} `yaml:"limit"`
}

Config 定义与 YAML 文件对应的结构体

var MainConfig *Config

Jump to

Keyboard shortcuts

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