store

package
v0.0.0-...-fb9b982 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doc

type Doc struct {
	Key   string
	Value []byte
}

Doc is what we will store the k/v as.

type Store

type Store interface {
	Keys() ([]string, error)
	Get(key string) ([]byte, error)
	Put(key string, val []byte) error
	Delete(key string) error
}

Store represents what each store implementaion should at least provide, it is an interface after all..

func NewBuntDB

func NewBuntDB() Store

func NewLungo

func NewLungo(dbname, colln string) Store

NewLungo gets you a new fake mongodb

func NewMem

func NewMem() Store

func NewRedis

func NewRedis(wep string, rep string) Store

Jump to

Keyboard shortcuts

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