config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address            string
	PaymentDestination string   `toml:"payment_destination"`
	PublicKey          string   `toml:"public_key"`
	PublicKeys         []string `toml:"public_keys"`
}

type BsvConfig

type BsvConfig struct {
	Capabilities Capabilities
	Accounts     []Account
}

type Capabilities

type Capabilities struct {
	SenderValidation     bool `toml:"sender_validation" default:"true"`
	VerifyPublicKeyOwner bool `toml:"verify_public_key_owner"`
}

type Config

type Config struct {
	Server ServerConfig `toml:"server"`
	Bsv    BsvConfig    `toml:"bsv"`
}

func ReadConfig

func ReadConfig(filePath string) (*Config, error)

type ServerConfig

type ServerConfig struct {
	Host          string
	ListenAddress string `toml:"listen_address" default:"localhost:26245"`
}

Jump to

Keyboard shortcuts

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