himeji

package
v0.0.0-...-cde4198 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bound

type Bound struct {
	Condition string
	Item      string
	Value     string
}

Bound is a query format

conditions: equal limit

type Bounds

type Bounds []Bound

type Data

type Data struct {
	Value interface{}
}

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type Himeji

type Himeji struct {
	service.ServiceBase
	// contains filtered or unexported fields
}

func New

func New(repo RepoFacade) *Himeji

func (*Himeji) Close

func (h *Himeji) Close()

func (*Himeji) Connect

func (h *Himeji) Connect() <-chan bool

func (*Himeji) Insert

func (h *Himeji) Insert(collection string, data *Data) <-chan bool

func (*Himeji) Query

func (h *Himeji) Query(collection string, query Bounds, result *Data) <-chan bool

func (*Himeji) QueryId

func (h *Himeji) QueryId(collection string, query string, result *Data) <-chan bool

func (*Himeji) Shutdown

func (h *Himeji) Shutdown()

func (*Himeji) Start

func (h *Himeji) Start()

type RepoFacade

type RepoFacade interface {
	Connect(done chan<- bool)
	Close()
	Insert(done chan<- bool, collection string, data *Data)
	Query(done chan<- bool, collection string, query Bounds, result *Data)
	QueryId(done chan<- bool, collection string, query string, result *Data)
}

Directories

Path Synopsis
facade

Jump to

Keyboard shortcuts

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