config

package
v0.0.0-...-472bc46 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BotAPIToken = iota
	SolanaEndpoint
	MEAPIKey
	PrivateKey
)

Variables

View Source
var (
	ErrConfigNotFoundByKey = func(key int) error {
		return fmt.Errorf("config not found by key = %q", key)
	}
)

Functions

func Get

func Get(key int) interface{}

func Init

func Init() error

Types

type Config

type Config struct {
	BotAPIToken    string `yaml:"bot-api-token"`
	SolanaEndpoint string `yaml:"solana-endpoint"`
	MEAPIKey       string `yaml:"me-api-key"`
	PrivateKey     string `yaml:"private-key"`
}

Jump to

Keyboard shortcuts

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