db

package
v0.0.0-...-abfbf2a Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(rec *event.Record) error

func Delete

func Delete(id string) error

func Init

func Init() error

func Read

func Read(id string) (*event.Record, error)

func Register

func Register(backend DB)
func Search(id, typ string, from, to, limit, offset int64, reverse bool) ([]*event.Record, error)

func Update

func Update(rec *event.Record) error

Types

type DB

type DB interface {
	Init() error
	Read(id string) (*event.Record, error)
	Create(rec *event.Record) error
	Update(rec *event.Record) error
	Delete(id string) error
	Search(id, typ string, from, to, limit, offset int64, reverse bool) ([]*event.Record, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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