ctree

package
v0.11.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigTree

type ConfigTree struct {
	// Debug turns on verbose logging of the tree functions to stdout
	Debug bool
	// contains filtered or unexported fields
}

ConfigTree struct type

func New

func New() *ConfigTree

New returns a new instance of ConfigTree

func (*ConfigTree) Add

func (c *ConfigTree) Add(ns []string, inNode Node)

Add adds a new tree node

func (*ConfigTree) Freeze

func (c *ConfigTree) Freeze()

Freeze sets the ConfigTree's freezeFlag to true

func (*ConfigTree) Frozen

func (c *ConfigTree) Frozen() bool

Frozen returns the bool value of ConfigTree freezeFlag

func (*ConfigTree) Get

func (c *ConfigTree) Get(ns []string) Node

Get returns a tree node given the namespace

func (*ConfigTree) GobDecode

func (c *ConfigTree) GobDecode(buf []byte) error

GobDecode decodes the ConfigTree.

func (*ConfigTree) GobEncode

func (c *ConfigTree) GobEncode() ([]byte, error)

GobEncode returns the encoded ConfigTree. Otherwise, an error is returned

func (*ConfigTree) MarshalJSON

func (c *ConfigTree) MarshalJSON() ([]byte, error)

MarshalJSON marshals ConfigTree

func (*ConfigTree) Print

func (c *ConfigTree) Print()

Print prints out the ConfigTree

type Node

type Node interface {
	Merge(Node) Node
}

Node interface

Jump to

Keyboard shortcuts

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