services

package
v0.0.0-...-e8a8f99 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTask

func CreateTask(t *task.Task) *commons.Error

CreateTask returns status.

func DeleteTask

func DeleteTask(id uint64, deletedAt bool) (bool, *commons.Error)

DeleteTask delete by os storage.

func GetTask

func GetTask(id uint64) (*task.Task, *commons.Error)

GetTask returns target or status.

func GetTasksWith

func GetTasksWith(p *models.Pagination) (*models.Response, *commons.Error)

GetTasksWith pagination queries.

func UpdateTask

func UpdateTask(t *task.Task) *commons.Error

UpdateTask returns error.

func UpsertTask

func UpsertTask(t *task.Task) *commons.Error

UpsertTask create or update.

Types

This section is empty.

Jump to

Keyboard shortcuts

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