conf

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 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 Binance

type Binance struct {
	APIKey string `env:"BINANCE_API_KEY,required"`
	Secret string `env:"BINANCE_SECRET,required"`
	Debug  bool   `env:"BINANCE_DEBUG" envDefault:"true"`
}

type Bot

type Bot struct {
	AdminID     int    `env:"ADMIN_TELEGRAM_ID,required"`
	Token       string `env:"BOT_TOKEN,required"`
	PrettyPrint bool   `env:"PRETTY_LOGS" envDefault:"false"`
	IsTest      bool   `env:"TEST_MODE" envDefault:"false"`
}

type Struct

type Struct struct {
	Bot     Bot
	Binance Binance
}

func ParseEnv

func ParseEnv() (*Struct, error)

Jump to

Keyboard shortcuts

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