controller

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Create

func (instance *CategoryCtrl) Create(item *model.Category) (response *model.Category, err error)

func (*CategoryCtrl) CreateIfAny

func (instance *CategoryCtrl) CreateIfAny(slug, name, description string) (response *model.Category, err error)

func (*CategoryCtrl) Delete

func (instance *CategoryCtrl) Delete(id int, force bool) (response *model.Category, err error)

func (*CategoryCtrl) Get

func (instance *CategoryCtrl) Get(id int, optContext 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)

func (*CategoryCtrl) List

func (instance *CategoryCtrl) List(args map[string]interface{}) (response []*model.Category, err error)

func (*CategoryCtrl) ListAll

func (instance *CategoryCtrl) ListAll() (response []*model.Category, err error)

type MediaCtrl

type MediaCtrl struct {
	// contains filtered or unexported fields
}

func NewMediaCtrl

func NewMediaCtrl(connection *connection.WpConnection) (instance *MediaCtrl, err error)

func (*MediaCtrl) Create

func (instance *MediaCtrl) Create(item *model.Media, filename string) (response *model.Media, err error)

func (*MediaCtrl) Delete

func (instance *MediaCtrl) Delete(id int, force bool) (response *model.Media, err error)

func (*MediaCtrl) Get

func (instance *MediaCtrl) Get(id int) (response *model.Media, err error)

func (*MediaCtrl) List

func (instance *MediaCtrl) List(args map[string]interface{}) (response []*model.Media, err error)

func (*MediaCtrl) ListAll

func (instance *MediaCtrl) ListAll() (response []*model.Media, err error)

type PostCtrl

type PostCtrl struct {
	// contains filtered or unexported fields
}

func NewPostCtrl

func NewPostCtrl(connection *connection.WpConnection) (instance *PostCtrl, err error)

func (*PostCtrl) Create

func (instance *PostCtrl) Create(item *model.Post) (response *model.Post, err error)

func (*PostCtrl) Delete

func (instance *PostCtrl) Delete(id int, force bool) (response *model.Post, err error)

func (*PostCtrl) Get

func (instance *PostCtrl) Get(id int, optContext, optPassword string) (response *model.Post, err error)

func (*PostCtrl) List

func (instance *PostCtrl) List(args map[string]interface{}) (response []*model.Post, err error)

func (*PostCtrl) ListAll

func (instance *PostCtrl) ListAll() (response []*model.Post, 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) Create

func (instance *TagCtrl) Create(item *model.Tag) (response *model.Tag, err error)

func (*TagCtrl) CreateIfAny

func (instance *TagCtrl) CreateIfAny(slug, name, description string) (response *model.Tag, err error)

func (*TagCtrl) Delete

func (instance *TagCtrl) Delete(id int, force bool) (response *model.Tag, err error)

func (*TagCtrl) Get

func (instance *TagCtrl) Get(id int, optContext string) (response *model.Tag, err error)

func (*TagCtrl) GetBySlug

func (instance *TagCtrl) GetBySlug(slug string) (response *model.Tag, err error)

func (*TagCtrl) HasBySlug

func (instance *TagCtrl) HasBySlug(slug string) (response bool, err error)

func (*TagCtrl) List

func (instance *TagCtrl) List(args map[string]interface{}) (response []*model.Tag, err error)

func (*TagCtrl) ListAll

func (instance *TagCtrl) ListAll() (response []*model.Tag, err error)

type UserCtrl

type UserCtrl struct {
	// contains filtered or unexported fields
}

func NewUserCtrl

func NewUserCtrl(connection *connection.WpConnection) (instance *UserCtrl, err error)

func (*UserCtrl) List

func (instance *UserCtrl) List(params map[string]interface{}) (response []*model.User, err error)

func (*UserCtrl) ListAll

func (instance *UserCtrl) ListAll() (response []*model.User, err error)

func (*UserCtrl) Me

func (instance *UserCtrl) Me() (response *model.User, err error)

Jump to

Keyboard shortcuts

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