upload_app

package
v1.1.29 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunStatus

type RunStatus string
const (
	RUNNING RunStatus = "running"
	STOP    RunStatus = "stop"
)

type UploadApp

type UploadApp struct {
	sync.Mutex
	Ctx       context.Context
	Cancel    func()
	RunStatus RunStatus
	// contains filtered or unexported fields
}

func NewUploadApp

func NewUploadApp(db *gorm.DB) *UploadApp

func (*UploadApp) CreateNewContext

func (app *UploadApp) CreateNewContext()

func (*UploadApp) Start

func (app *UploadApp) Start()

func (*UploadApp) Status

func (app *UploadApp) Status() (*UploadAppStatus, error)

type UploadAppStatus

type UploadAppStatus struct {
	Status RunStatus `json:"status"`
	repo.UploadStatus
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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