Skip to content

HeavyHorst/easykv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 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 nats kv
GetValues X X X X X X X X X
WatchPrefix X X X X X X
Close X X X X X X X X X

About

very simple Key/Value store abstraction library

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •