config

package
v0.0.0-...-24518c4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoConf    = errors.New("no orders found in config")
	ErrWrongType = errors.New("the type must is not limit or stop_limit")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Password         string   `toml:"wallet_password"`
	PancakeRouterHex string   `toml:"pancakeswap_router_address"`
	EndpointURL      string   `toml:"endpoint_url"`
	ChainID          int64    `toml:"chain_id"`
	WalletPath       string   `toml:"wallet_path"`
	DBPath           string   `toml:"database_path"`
	TelegramAPIKey   string   `toml:"telegram_api_key"`
	Users            []string `toml:"telegram_users"`
}

func Load

func Load(path string) (*Config, error)

Reads from a file with the given path and returns the config

Jump to

Keyboard shortcuts

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