config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 4 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 {
	Exchanges string `toml:"exchanges"`
	Stores    string `toml:"stores"`
	LastDays  int    `toml:"last_days"`
	WeChat    struct {
		CorpID    string `toml:"corp_id"`
		AppID     int    `toml:"app_id"`
		AppSecret string `toml:"app_secret"`
	} `toml:"wechat"`
}

Config global config

func Get

func Get() *Config

Get get current config

func Parse

func Parse(filePath string) (*Config, error)

Parse parse config from file

func (Config) Valid

func (s Config) Valid() error

Valid validate config

Jump to

Keyboard shortcuts

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