kvstore

package module
v0.0.0-...-d799dea Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 3

README

kvstore is base on libkv. I try to use libkv, but it is not very active. So I write this project. This project's goal is to support etcd v2, v3 and zookeeper, make application easy to switch kv store.

Now it is support etcd v2, v3 and zookeeper.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStore

func AddStore(store string, init Initialize)

AddStore adds a new store backend to kvstore

func NewStore

func NewStore(backend string, addrs []string, options *store.Config) (store.Store, error)

NewStore creates an instance of store

Types

type Initialize

type Initialize func(addrs []string, options *store.Config) (store.Store, error)

Initialize creates a new Store object, initializing the client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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