configuration

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 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 {
	Default_identity string                 `libucl:"default_identity" json:"default_identity"`
	Network          string                 `libucl:"network" json:"network"`
	Connect          string                 `libucl:"connect" json:"connect"`
	Identity         []encrypt.IdentityType `libucl:"identity" json:"identity"`
}

func GetConfiguration

func GetConfiguration(configurationFileName string, variables map[string]string) (*Configuration, error)

full access to data (includes private data)

type InfoConfiguration

type InfoConfiguration struct {
	Default_identity string             `libucl:"default_identity" json:"default_identity"`
	Network          string             `libucl:"network" json:"network"`
	Connect          string             `libucl:"connect" json:"connect"`
	Identity         []InfoIdentityType `libucl:"identity" json:"identity"`
}

func GetInfoConfiguration

func GetInfoConfiguration(configurationFileName string, variables map[string]string) (*InfoConfiguration, error)

restricted access to data (excludes private items)

type InfoIdentityType

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

Jump to

Keyboard shortcuts

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