quick

package
v0.0.0-...-f4bd7b1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckData

func CheckData(data interface{}) *probe.Error

CheckData - checks the validity of config data. Data sould be of type struct and contain a string type field called "Version"

Types

type Config

type Config interface {
	String() string
	Version() string
	Save(string) *probe.Error
	Load(string) *probe.Error
	Data() interface{}
	Diff(Config) ([]structs.Field, *probe.Error)
	DeepDiff(Config) ([]structs.Field, *probe.Error)
}

Config - generic config interface functions

func Load

func Load(filename string, data interface{}) (Config, *probe.Error)

Load - loads json config

func New

func New(data interface{}) (Config, *probe.Error)

New - instantiate a new config

Jump to

Keyboard shortcuts

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