reading

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: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, readingTagService *readingtag.App, tagService *tag.App) *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 reading

func (App) Delete

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

Delete reading

func (App) Get

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

Get reading 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 readings of user

func (App) Unmarshal

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

Unmarshal a Reading

func (App) Update

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

Update reading

Jump to

Keyboard shortcuts

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