config

package
v2.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 7 Imported by: 0

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"`
		UnixSockets []string `env:"UNIX_SOCKETS" envSeparator:","`
	}
	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"`
		IsTestnet          bool                `env:"IS_TESTNET" envDefault:"false"`
	}
	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