states

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DownloadingFile = "DownloadingFile"
	FileDownloaded  = "FileDownloaded"
	ProcessingFile  = "ProcessingFile"
	FileProcessed   = "FileProcessed"
	UploadingFile   = "UploadingFile"
	FileUploaded    = "FileUploaded"
)

Variables

View Source
var (
	GroupFileDownloaded = S{DownloadingFile, FileDownloaded}
	GroupFileProcessed  = S{ProcessingFile, FileProcessed}
	GroupFileUploaded   = S{UploadingFile, FileUploaded}
)

Names is an ordered list of all the state names.

View Source
var States = am.Struct{
	DownloadingFile: {Remove: GroupFileDownloaded},
	FileDownloaded:  {Remove: GroupFileDownloaded},
	ProcessingFile: {
		Auto:    true,
		Require: S{FileDownloaded},
		Remove:  GroupFileProcessed,
	},
	FileProcessed: {Remove: GroupFileProcessed},
	UploadingFile: {
		Auto:    true,
		Require: S{FileProcessed},
		Remove:  GroupFileUploaded,
	},
	FileUploaded: {Remove: GroupFileUploaded},
}

States map defines relations and properties of states.

Functions

This section is empty.

Types

type S

type S = am.S

S is a type alias for a list of state names.

Jump to

Keyboard shortcuts

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