config

package
v0.0.0-...-6ceb869 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 6 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 {
	Network           string
	WalletAddress     string
	WalletPath        string
	WalletPassword    string
	NetworkNodes      []string
	LocalNode         string
	StorePath         string
	DataBasePath      string
	AuthIDs           []string
	DiscordBotCfg     DiscordBotConfig
	TwitterAPICfg     TwitterAPIConfig
	NowPaymentsConfig nowpayments.Config
}

func Load

func Load(filePaths ...string) (*Config, error)

func (*Config) BasicCheck

func (cfg *Config) BasicCheck() error

Validate checks for the presence of required environment variables.

type DiscordBotConfig

type DiscordBotConfig struct {
	DiscordToken   string
	DiscordGuildID string
}

type TwitterAPIConfig

type TwitterAPIConfig struct {
	BearerToken string
	TwitterID   string
}

Jump to

Keyboard shortcuts

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