config

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 7 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 {
	Path      string          `yaml:"-"`
	Endpoints ConfigEndpoints `yaml:"endpoints"`
	Wallets   []string        `yaml:"wallets"`
}

func NewConfig

func NewConfig(path string) *Config

func (*Config) AddWallet

func (c *Config) AddWallet(wallet string) error

func (*Config) ReadConfig

func (c *Config) ReadConfig() error

func (*Config) RemoveWallet

func (c *Config) RemoveWallet(wallet string)

func (*Config) WriteConfig

func (c *Config) WriteConfig() error

type ConfigEndpoints

type ConfigEndpoints struct {
	Hiro     string `yaml:"hiro"`
	Ord      string `yaml:"ord"`
	Alex     string `yaml:"alex"`
	StxTools string `yaml:"stxtools"`
	Bob      string `yaml:"bob"`
}

Jump to

Keyboard shortcuts

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