dummy

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyDB

type DummyDB struct {
	Users  map[string]*models.User
	Pages  map[string]*models.Page
	Routes map[string]*models.Route
	Data   map[string]*models.Data
	Files  map[string]*models.File
	// contains filtered or unexported fields
}

func New

func New() *DummyDB

func (*DummyDB) Debug

func (d *DummyDB) Debug(w io.Writer) error

func (*DummyDB) DeleteData added in v0.2.0

func (d *DummyDB) DeleteData(data *models.Data) error

func (*DummyDB) DeleteFile added in v0.3.0

func (d *DummyDB) DeleteFile(file *models.File) error

func (*DummyDB) DeletePage

func (d *DummyDB) DeletePage(p *models.Page) error

func (*DummyDB) DeleteRoute

func (d *DummyDB) DeleteRoute(r *models.Route) error

func (*DummyDB) GetData added in v0.2.0

func (d *DummyDB) GetData(key string) (*models.Data, error)

func (*DummyDB) GetFile added in v0.3.0

func (d *DummyDB) GetFile(uuid string) (*models.File, error)

func (*DummyDB) GetFileByName added in v0.3.0

func (d *DummyDB) GetFileByName(name string) (*models.File, error)

func (*DummyDB) GetPage

func (d *DummyDB) GetPage(uuid string) (*models.Page, error)

func (*DummyDB) GetRoute

func (d *DummyDB) GetRoute(uuid string) (*models.Route, error)

func (*DummyDB) GetUser

func (d *DummyDB) GetUser(uuid string) (*models.User, error)

func (*DummyDB) GetUserByEmail

func (d *DummyDB) GetUserByEmail(email string) (*models.User, error)

func (*DummyDB) GetUserByToken

func (d *DummyDB) GetUserByToken(token string) (*models.User, error)

func (*DummyDB) ListData added in v0.2.0

func (d *DummyDB) ListData() ([]*models.Data, error)

func (*DummyDB) ListFiles added in v0.3.0

func (d *DummyDB) ListFiles() ([]*models.File, error)

func (*DummyDB) ListPages

func (d *DummyDB) ListPages(req *api.ListPageRequest) ([]*models.Page, error)

func (*DummyDB) ListRoutes

func (d *DummyDB) ListRoutes(req *api.ListRouteRequest) ([]*models.Route, error)

func (*DummyDB) ListUsers added in v0.3.0

func (d *DummyDB) ListUsers() ([]*models.User, error)

func (*DummyDB) UpdateData added in v0.2.0

func (d *DummyDB) UpdateData(data *models.Data) error

func (*DummyDB) UpdateDataBatch added in v0.2.0

func (d *DummyDB) UpdateDataBatch(data []*models.Data) error

func (*DummyDB) UpdateFile added in v0.3.0

func (d *DummyDB) UpdateFile(file *models.File) error

func (*DummyDB) UpdatePage

func (d *DummyDB) UpdatePage(p *models.Page) error

func (*DummyDB) UpdateRoute

func (d *DummyDB) UpdateRoute(r *models.Route) error

func (*DummyDB) UpdateUser

func (d *DummyDB) UpdateUser(u *models.User) error

Jump to

Keyboard shortcuts

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