Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { FieldName string // Field name that was changed Type ChangeType Key string // If field is map, key value that changed Value interface{} // New value; if map, value is slotted at changed key }
Change represents a change to the config struct
type ChangeType ¶
type ChangeType uint
A Change type represents the kind of change that happened
const ( SET ChangeType = iota DELETE )
type DoozerConfig ¶
type DoozerConfig struct {
// contains filtered or unexported fields
}
func New ¶
func New(conn *doozer.Conn, loadRev int64, configStruct interface{}, prefix string) *DoozerConfig
New returns a new DoozerConfig given doozer connection, struct object and doozer path prefix.
func (*DoozerConfig) Load ¶
func (c *DoozerConfig) Load() error
Load populates the struct with config values from doozer.
Click to show internal directories.
Click to hide internal directories.