config

package
v0.0.0-...-cba07fa Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileName = "/data/options.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TelegramToken        string  `json:"TELEGRAM_TOKEN"`
	TelegramAdminIDs     string  `json:"TELEGRAM_ADMIN_IDS"`
	TelegramAdminIDsList []int64 `json:"-"`
	TelegramTargetChat   string  `json:"TELEGRAM_TARGET_CHAT"`
	TelegramTargetChatID int64   `json:"-"`

	TOKENS_PATH string `json:"TOKENS_PATH"`

	DATA_URL       string `json:"DATA_URL"`
	DATA_OHLCV_URL string `json:"DATA_OHLCV_URL"`

	UPDATE_DELAY int `json:"UPDATE_DELAY"`

	Debug bool `json:"DEBUG"`
}

Config ...

func InitConfig

func InitConfig(args []string) (*Config, error)

Jump to

Keyboard shortcuts

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