configuration

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	models.Config
	// contains filtered or unexported fields
}

func (*Node) Delete

func (n *Node) Delete(key string) (*Node, error)

func (*Node) Get

func (n *Node) Get(key string) (*Node, error)

func (*Node) GetAll

func (n *Node) GetAll() (nodes []*Node, err error)

func (*Node) HasChild

func (n *Node) HasChild() (ret bool)

func (*Node) Put

func (n *Node) Put(key string, value interface{}) error

type Service

type Service interface {
	services.ServiceLifeCycle
	Get(key string) (*Node, error)
	GetRoot() (*Node, error)
	ListAll(page uint32, size uint32, sort string, order string) (int64, []models.Config, error)
	Put(key string, value interface{}) error
	Delete(key string) (*Node, error)
}

func GetInstance

func GetInstance() Service

Jump to

Keyboard shortcuts

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