task

package
v0.0.0-...-ace9e8d Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LongTask

type LongTask interface {
	GetSeq() int64
	SetSeq(int64)
	GetStage() int
	GetCode() int
	GetErr() error
	GetData() string
	IsComplete() bool
	IsSuccess() bool
	IsExpired() bool
	Execute()
}

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) Get

func (s *Manager) Get(seq int64) LongTask

func (*Manager) Init

func (s *Manager) Init() error

func (*Manager) Push

func (s *Manager) Push(task LongTask)

Jump to

Keyboard shortcuts

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