Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKVStore ¶
type IKVStore interface { TestLive() error // result will be null if does not exist Get(Id string) ([]byte, error) Set(Id string, value []byte) error Cleanup() error }
func NewKVConsul ¶
func NewKVConsul(config *KVConsulConfig) (IKVStore, error)
func NewMockKVStore ¶
func NewMockKVStore() IKVStore
type KVConsulConfig ¶
type MockKVStore ¶
type MockKVStore struct {
// contains filtered or unexported fields
}
func (MockKVStore) Cleanup ¶
func (kv MockKVStore) Cleanup() error
func (MockKVStore) TestLive ¶
func (kv MockKVStore) TestLive() error
Click to show internal directories.
Click to hide internal directories.