Skip to content
/ easykv Public
forked from HeavyHorst/easykv

very simple Key/Value store abstraction library

License

Notifications You must be signed in to change notification settings

kammala/easykv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Go Report Card MIT licensed

easyKV

easyKV is based on the backends of confd. easyKV provides a very simple interface to work with some key-value stores. The goal of easyKV is to abstract these 2 common operations for multiple backends:

  • recursively query the kv-store for key-value pairs.
  • watch a key-prefix for changes.

Interface

A storage backend in easyKV should implement (fully or partially) this interface:

type ReadWatcher interface {
	GetValues(keys []string) (map[string]string, error)
	WatchPrefix(ctx context.Context, prefix string, opts ...WatchOption) (uint64, error)
	Close()
}

Compatibility matrix

Calls Consul Etcdv2 Etcdv3 env file redis vault zookeeper
GetValues X X X X X X X X
WatchPrefix X X X X X
Close X X X X X X X X

About

very simple Key/Value store abstraction library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • Shell 0.5%