Documentation ¶
Index ¶
- type DummyDB
- func (d *DummyDB) Debug(w io.Writer) error
- func (d *DummyDB) DeleteData(data *models.Data) error
- func (d *DummyDB) DeleteFile(file *models.File) error
- func (d *DummyDB) DeletePage(p *models.Page) error
- func (d *DummyDB) DeleteRoute(r *models.Route) error
- func (d *DummyDB) GetData(key string) (*models.Data, error)
- func (d *DummyDB) GetFile(uuid string) (*models.File, error)
- func (d *DummyDB) GetFileByName(name string) (*models.File, error)
- func (d *DummyDB) GetPage(uuid string) (*models.Page, error)
- func (d *DummyDB) GetRoute(uuid string) (*models.Route, error)
- func (d *DummyDB) GetUser(uuid string) (*models.User, error)
- func (d *DummyDB) GetUserByEmail(email string) (*models.User, error)
- func (d *DummyDB) GetUserByToken(token string) (*models.User, error)
- func (d *DummyDB) ListData() ([]*models.Data, error)
- func (d *DummyDB) ListFiles() ([]*models.File, error)
- func (d *DummyDB) ListPages(req *api.ListPageRequest) ([]*models.Page, error)
- func (d *DummyDB) ListRoutes(req *api.ListRouteRequest) ([]*models.Route, error)
- func (d *DummyDB) ListUsers() ([]*models.User, error)
- func (d *DummyDB) UpdateData(data *models.Data) error
- func (d *DummyDB) UpdateDataBatch(data []*models.Data) error
- func (d *DummyDB) UpdateFile(file *models.File) error
- func (d *DummyDB) UpdatePage(p *models.Page) error
- func (d *DummyDB) UpdateRoute(r *models.Route) error
- func (d *DummyDB) UpdateUser(u *models.User) error
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 (*DummyDB) GetFileByName ¶ added in v0.3.0
func (*DummyDB) GetUserByEmail ¶
func (*DummyDB) GetUserByToken ¶
func (*DummyDB) ListRoutes ¶
func (*DummyDB) UpdateDataBatch ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.