config

package
v0.0.0-...-dc1a0b8 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfigFile

func ReadConfigFile(filename string, cfg *Config) error

func ReadFile

func ReadFile(filename string) ([]byte, error)

func WriteConfigFile

func WriteConfigFile(filename string, cfg *Config) error

func WriteFile

func WriteFile(filename string, buf []byte) error

Types

type Config

type Config struct {
	Identity  *Identity
	Datastore *Datastore
}

func LoadConfig

func LoadConfig(filename string) (*Config, error)

type Datastore

type Datastore struct {
	Type string
	Path string
}

type Identity

type Identity struct {
	PeerId string
}

Jump to

Keyboard shortcuts

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