Documentation
¶
Index ¶
- type Repository
- func (repo *Repository) DeleteItem(projectId, id string) (err error)
- func (repo *Repository) Item(projectId, id string) (item cms.Item, found bool, err error)
- func (repo *Repository) Items(projectId string, filter cms.Filter) (result chan cms.Item, err error)
- func (repo *Repository) PutItem(projectId, id string, item cms.Item) (err error)
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
Click to show internal directories.
Click to hide internal directories.