config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AddressPath    = "https://raw.githubusercontent.com/tonkeeper/ton-assets/main/accounts.json"
	CollectionPath = "https://raw.githubusercontent.com/tonkeeper/ton-assets/main/collections.json"
	JettonPath     = "https://raw.githubusercontent.com/tonkeeper/ton-assets/main/jettons.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	API struct {
		Port int `env:"PORT" envDefault:"8081"`
	}
	App struct {
		LogLevel           string              `env:"LOG_LEVEL" envDefault:"INFO"`
		MetricsPort        int                 `env:"METRICS_PORT" envDefault:"9010"`
		Accounts           accountsList        `env:"ACCOUNTS"`
		LiteServers        []config.LiteServer `env:"LITE_SERVERS"`
		SendingLiteservers []config.LiteServer `env:"SENDING_LITE_SERVERS"`
	}
	TonConnect struct {
		Secret string `env:"TON_CONNECT_SECRET"`
	}
}

func Load

func Load() Config

Jump to

Keyboard shortcuts

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