Documentation
¶
Index ¶
- Variables
- type Topic
- func (u *Topic) Create(db orm.DB, topicModel model.Topic) (*model.Topic, error)
- func (u *Topic) Delete(db orm.DB, topic *model.Topic) error
- func (u *Topic) List(db orm.DB, qp *model.ListQuery, p *model.Pagination) ([]model.Topic, error)
- func (u *Topic) Update(db orm.DB, topic *model.Topic) error
- func (u *Topic) View(db orm.DB, id int) (*model.Topic, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyExists = echo.NewHTTPError(http.StatusInternalServerError, "Topic name already exists.")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
type Topic ¶
type Topic struct{}
Topic represents the client for topic table
func (*Topic) List ¶
List returns list of all topics retrievable for the current topic, depending on role
Click to show internal directories.
Click to hide internal directories.