kv

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(logger logger.Logger, config *frames.BackendConfig, framesConfig *frames.Config) (frames.DataBackend, error)

NewBackend return a new key/value backend

Types

type Appender

type Appender struct {
	// contains filtered or unexported fields
}

Appender is key/value appender

func (*Appender) Add

func (a *Appender) Add(frame frames.Frame) error

Add adds a frame

func (*Appender) WaitForComplete

func (a *Appender) WaitForComplete(timeout time.Duration) error

WaitForComplete waits for write to complete

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

Backend is key/value backend

func (*Backend) Create

func (b *Backend) Create(request *frames.CreateRequest) error

Create creates a table

func (*Backend) Delete

func (b *Backend) Delete(request *frames.DeleteRequest) error

Delete deletes a table (or part of it)

func (*Backend) Exec

func (b *Backend) Exec(request *frames.ExecRequest) (frames.Frame, error)

Exec executes a command

func (*Backend) Read

func (kv *Backend) Read(request *frames.ReadRequest) (frames.FrameIterator, error)

Read does a read request

func (*Backend) Write

func (kv *Backend) Write(request *frames.WriteRequest) (frames.FrameAppender, error)

Write support writing to backend

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

Iterator is key/value iterator

func (*Iterator) At

func (ki *Iterator) At() frames.Frame

At return the current frames

func (*Iterator) Err

func (ki *Iterator) Err() error

Err return the last error

func (*Iterator) Next

func (ki *Iterator) Next() bool

Next advances the iterator to next frame

Jump to

Keyboard shortcuts

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