config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 4 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 {
	OpenAI struct {
		Model    string `toml:"model"`
		Question string `toml:"question"`
	} `toml:"open_ai"`
	Stellar struct {
		FundAccount struct {
			Airdrop struct {
				ByUsernameAmount map[string]string `toml:"by_username_amount"`
				IDLessThanAmount map[string]string `toml:"id_less_than_amount"`
				Enable           bool              `toml:"enable"`
			} `toml:"airdrop"`
			Address        string `toml:"address"`
			Seed           string `toml:"seed"`
			DefaultAmount  string `toml:"default_amount"`
			DefaultAirdrop string `toml:"default_airdrop"`
			Network        string `toml:"network"`
			Passphrase     string `toml:"passphrase"`
			Memo           string `toml:"memo"`
			AssetCode      string `toml:"asset_code"`
			AssetIssuer    string `toml:"asset_issuer"`
			BaseFee        int64  `toml:"base_fee"`
		} `toml:"fund_account"`
	} `toml:"stellar"`
	Telegram struct {
		Welcome struct {
			ChannelURL  string `toml:"channel_url"`
			ChannelName string `toml:"channel_name"`
		} `toml:"welcome"`
		MainChannelID int64 `toml:"main_channel_id"`
		SuggestChatID int64 `toml:"suggest_chat_id"`
		Private       struct {
			Enable bool `toml:"enable"`
		} `toml:"private"`
		Thanks struct {
			Enable bool `toml:"enable"`
		} `toml:"thanks"`
	} `toml:"telegram"`
}

func Get

func Get(paths ...string) (*Config, error)

Jump to

Keyboard shortcuts

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