Documentation ¶
Index ¶
- type CategoryCtrl
- func (instance *CategoryCtrl) Create(item *model.Category) (response *model.Category, err error)
- func (instance *CategoryCtrl) CreateIfAny(slug, name, description string) (response *model.Category, err error)
- func (instance *CategoryCtrl) Delete(id int, force bool) (response *model.Category, err error)
- func (instance *CategoryCtrl) Get(id int, optContext string) (response *model.Category, err error)
- func (instance *CategoryCtrl) GetBySlug(slug string) (response *model.Category, err error)
- func (instance *CategoryCtrl) HasBySlug(slug string) (response bool, err error)
- func (instance *CategoryCtrl) List(args map[string]interface{}) (response []*model.Category, err error)
- func (instance *CategoryCtrl) ListAll() (response []*model.Category, err error)
- type MediaCtrl
- func (instance *MediaCtrl) Create(item *model.Media, filename string) (response *model.Media, err error)
- func (instance *MediaCtrl) Delete(id int, force bool) (response *model.Media, err error)
- func (instance *MediaCtrl) Get(id int) (response *model.Media, err error)
- func (instance *MediaCtrl) List(args map[string]interface{}) (response []*model.Media, err error)
- func (instance *MediaCtrl) ListAll() (response []*model.Media, err error)
- type PostCtrl
- func (instance *PostCtrl) Create(item *model.Post) (response *model.Post, err error)
- func (instance *PostCtrl) Delete(id int, force bool) (response *model.Post, err error)
- func (instance *PostCtrl) Get(id int, optContext, optPassword string) (response *model.Post, err error)
- func (instance *PostCtrl) List(args map[string]interface{}) (response []*model.Post, err error)
- func (instance *PostCtrl) ListAll() (response []*model.Post, err error)
- type TagCtrl
- func (instance *TagCtrl) Create(item *model.Tag) (response *model.Tag, err error)
- func (instance *TagCtrl) CreateIfAny(slug, name, description string) (response *model.Tag, err error)
- func (instance *TagCtrl) Delete(id int, force bool) (response *model.Tag, err error)
- func (instance *TagCtrl) Get(id int, optContext string) (response *model.Tag, err error)
- func (instance *TagCtrl) GetBySlug(slug string) (response *model.Tag, err error)
- func (instance *TagCtrl) HasBySlug(slug string) (response bool, err error)
- func (instance *TagCtrl) List(args map[string]interface{}) (response []*model.Tag, err error)
- func (instance *TagCtrl) ListAll() (response []*model.Tag, err error)
- type UserCtrl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryCtrl ¶
type CategoryCtrl struct {
// contains filtered or unexported fields
}
func NewCategoryCtrl ¶
func NewCategoryCtrl(connection *connection.WpConnection) (instance *CategoryCtrl, err error)
func (*CategoryCtrl) CreateIfAny ¶
func (instance *CategoryCtrl) CreateIfAny(slug, name, description string) (response *model.Category, err error)
func (*CategoryCtrl) GetBySlug ¶
func (instance *CategoryCtrl) GetBySlug(slug string) (response *model.Category, err error)
func (*CategoryCtrl) HasBySlug ¶
func (instance *CategoryCtrl) HasBySlug(slug string) (response bool, err error)
type MediaCtrl ¶
type MediaCtrl struct {
// contains filtered or unexported fields
}
func NewMediaCtrl ¶
func NewMediaCtrl(connection *connection.WpConnection) (instance *MediaCtrl, err error)
type PostCtrl ¶
type PostCtrl struct {
// contains filtered or unexported fields
}
func NewPostCtrl ¶
func NewPostCtrl(connection *connection.WpConnection) (instance *PostCtrl, err error)
type TagCtrl ¶
type TagCtrl struct {
// contains filtered or unexported fields
}
func NewTagCtrl ¶
func NewTagCtrl(connection *connection.WpConnection) (instance *TagCtrl, err error)
func (*TagCtrl) CreateIfAny ¶
type UserCtrl ¶
type UserCtrl struct {
// contains filtered or unexported fields
}
func NewUserCtrl ¶
func NewUserCtrl(connection *connection.WpConnection) (instance *UserCtrl, err error)
Click to show internal directories.
Click to hide internal directories.