tag

package
v0.0.0-...-497b9c9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App of package

func New

func New(db *sql.DB) *App

New creates new App

func (App) Check

func (a App) Check(_ context.Context, _, new interface{}) []crud.Error

Check instance

func (App) Create

func (a App) Create(ctx context.Context, o interface{}) (item interface{}, err error)

Create tag

func (App) Delete

func (a App) Delete(ctx context.Context, o interface{}) (err error)

Delete tag

func (App) FindTagsByIds

func (a App) FindTagsByIds(ids []uint64) ([]*model.Tag, error)

FindTagsByIds finds tags by ids

func (App) Get

func (a App) Get(ctx context.Context, ID uint64) (interface{}, error)

Get tag of user

func (App) List

func (a App) List(ctx context.Context, page, pageSize uint, sortKey string, sortAsc bool, filters map[string][]string) ([]interface{}, uint, error)

List tags of user

func (App) Unmarshal

func (a App) Unmarshal(content []byte, contentType string) (interface{}, error)

Unmarshal a Tag

func (App) Update

func (a App) Update(ctx context.Context, o interface{}) (item interface{}, err error)

Update tag

Jump to

Keyboard shortcuts

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