HeavyHorst / easykv

very simple Key/Value store abstraction library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 99.6%Language:Shell 0.4%