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)
Click to show internal directories.
Click to hide internal directories.