store

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2016 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter map[string]bool

type Iterator

type Iterator interface {
	IsClosed() bool
	Close() error
	Next(result interface{}) bool
	All(result interface{}) error
	Err() error
}

type Query

type Query map[string]interface{}

type Session

type Session interface {
	IsClosed() bool
	Close()
	Find(query Query, result interface{}) error
	FindAll(query Query, sort []string, filter Filter) Iterator
	Insert(d interface{}) error
	InsertAll(d ...interface{}) error
	Update(selector interface{}, d interface{}) error
	UpdateAll(selector interface{}, update interface{}) error
	RemoveAll(selector interface{}) error
}

type Store

type Store interface {
	IsClosed() bool
	Close()
	GetStatus() interface{}
	NewSession(log log.Logger) (Session, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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