logics

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBHTTPHeader

func GetDBHTTPHeader(header http.Header) http.Header

Types

type Logics

type Logics struct {
	*backbone.Engine
	// contains filtered or unexported fields
}

func NewLogics

func NewLogics(b *backbone.Engine, header http.Header, cache *redis.Client, db dal.RDB) *Logics

NewLogics get logics handle

func (*Logics) ChangeStatusToFailure

func (lgc *Logics) ChangeStatusToFailure(ctx context.Context, taskID, subTaskID string, errResponse *metadata.Response) error

ChangeStatusToFailure change status to failure

func (*Logics) ChangeStatusToSuccess

func (lgc *Logics) ChangeStatusToSuccess(ctx context.Context, taskID, subTaskID string) error

ChangeStatusToSuccess task status change to success

func (*Logics) Create

Create add task

func (*Logics) Detail

func (lgc *Logics) Detail(ctx context.Context, taskID string) (*metadata.APITaskDetail, error)

Detail task detail

func (*Logics) List

List list task

func (*Logics) NewFromHeader

func (lgc *Logics) NewFromHeader(header http.Header) *Logics

NewFromHeader new Logic from header

Jump to

Keyboard shortcuts

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