db

package
v0.0.0-...-e2b10d7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
}

Repository implementing the cms.Repository interface on top of a sql database.

func NewRepository

func NewRepository() (*Repository, error)

func (*Repository) DeleteItem

func (repo *Repository) DeleteItem(projectId, id string) (err error)

Returns the Item

func (*Repository) Item

func (repo *Repository) Item(projectId, id string) (item cms.Item, found bool, err error)

Returns the Item

func (*Repository) Items

func (repo *Repository) Items(projectId string, filter cms.Filter) (result chan cms.Item, err error)

Return the items described by the filter

func (*Repository) PutItem

func (repo *Repository) PutItem(projectId, id string, item cms.Item) (err error)

Returns the Item

Jump to

Keyboard shortcuts

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