temporal_fileprocessing

package
v0.19.8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileProcessingFlow

func FileProcessingFlow(ctx context.Context, log Logger, filename string) (*am.Machine, error)

FileProcessingFlow is an example of how to use the FileProcessing machine.

Types

type BlobStore

type BlobStore struct{}

type Logger

type Logger func(msg string, args ...any)

type MachineHandlers

type MachineHandlers struct {
	// default handler for the build in Exception state
	am.ExceptionHandler
	BlobStore         *BlobStore
	Filename          string
	DownloadedName    string
	ProcessedFileName string
}

MachineHandlers is a struct of handlers & their data for the FileProcessing machine. None of the handlers can block.

func (*MachineHandlers) DownloadingFileState

func (h *MachineHandlers) DownloadingFileState(e *am.Event)

DownloadingFileState is a _final_ entry handler for the DownloadingFile state.

func (*MachineHandlers) ProcessingFileEnd

func (h *MachineHandlers) ProcessingFileEnd(e *am.Event)

ProcessingFileEnd is a _final_ exit handler for the ProcessingFile state.

func (*MachineHandlers) ProcessingFileState

func (h *MachineHandlers) ProcessingFileState(e *am.Event)

ProcessingFileState is a _final_ entry handler for the ProcessingFile state.

func (*MachineHandlers) UploadingFileEnd

func (h *MachineHandlers) UploadingFileEnd(e *am.Event)

UploadingFileEnd is a _final_ exit handler for the UploadingFile state.

func (*MachineHandlers) UploadingFileState

func (h *MachineHandlers) UploadingFileState(e *am.Event)

UploadingFileState is a _final_ transition handler for the UploadingFile state.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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