persist

package
v0.0.0-...-0170160 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Books

type Books struct {
	Pool *redis.Pool `inject:""`
}

func (*Books) Count

func (b *Books) Count() (int64, error)

func (*Books) Create

func (b *Books) Create(book *models.Book) error

func (*Books) Get

func (b *Books) Get(id int64) (*models.Book, error)

func (*Books) GetAll

func (b *Books) GetAll() ([]*models.Book, error)

func (*Books) GetAndWatch

func (b *Books) GetAndWatch(id int64) (*models.Book, error)

func (*Books) Update

func (b *Books) Update(book *models.Book) error

Jump to

Keyboard shortcuts

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