configuration

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: ISC, ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNetwork = "testing"
)

Variables

This section is empty.

Functions

func Save

func Save(filename string, configuration *Configuration) error

Types

type Configuration

type Configuration struct {
	DefaultIdentity string                 `json:"default_identity"`
	TestNet         bool                   `json:"testnet"`
	Connect         string                 `json:"connect"`
	Identities      []encrypt.IdentityType `json:"identities"`
}

func GetConfiguration

func GetConfiguration(filename string) (*Configuration, error)

full access to data (includes private data)

type InfoConfiguration

type InfoConfiguration struct {
	DefaultIdentity string             `json:"default_identity"`
	TestNet         bool               `json:"testnet"`
	Connect         string             `json:"connect"`
	Identities      []InfoIdentityType `json:"identities"`
}

func GetInfoConfiguration

func GetInfoConfiguration(filename string) (*InfoConfiguration, error)

restricted access to data (excludes private items)

func (*InfoConfiguration) Len added in v0.9.1

func (s *InfoConfiguration) Len() int

func (*InfoConfiguration) Less added in v0.9.1

func (s *InfoConfiguration) Less(i int, j int) bool

func (*InfoConfiguration) Swap added in v0.9.1

func (s *InfoConfiguration) Swap(i, j int)

type InfoIdentityType

type InfoIdentityType struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	PublicKey   string `json:"public_key"`
	Account     string `json:"account"`
}

Jump to

Keyboard shortcuts

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