storage

package
v0.0.0-...-e4c6d64 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2015 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query() query.Builder

func QueryFromURL

func QueryFromURL(u *url.URL) (*query.Query, error)

func Register

func Register(name string, backend Backend)

Types

type Backend

type Backend interface {
	Open(url *url.URL) (Store, error)
}

type Store

type Store interface {
	Find(query query.Query) ([]post.Post, error)
	FindById(id string) (*post.Post, error)
	FindAll() ([]post.Post, error)

	Create(post post.Post) error
	Update(post post.Post) error
	Delete(id string) error

	Close() error
}

func Open

func Open(rawUrl string) (Store, error)

Directories

Path Synopsis
a storage whose backend is another instance of gol
a storage whose backend is another instance of gol
a store that writes to multiple backing stores
a store that writes to multiple backing stores
not a storage, but the query interface
not a storage, but the query interface

Jump to

Keyboard shortcuts

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