meta

package
v0.0.0-...-bc5e729 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MPL-2.0 Imports: 5 Imported by: 0

README

meta

meta defines the interfaces for the underlying infrastructure for meta managment.

Currently use etcd.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV interface {
	Get(key string) (string, error)
	Put(key string, value string) error
}

KV defines a KV storage

type Meta

type Meta interface {
	KV
	ModifyWatcher
}

Meta for oncekv meta store

var Default Meta

Default for default Meta

func New

func New() (Meta, error)

New returns a kv

type ModifyWatcher

type ModifyWatcher interface {
	WatchModify(key string, do func())
}

ModifyWatcher defines watch one key's modification

Jump to

Keyboard shortcuts

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