package
0.34.4
Repository: https://github.com/256dpi/fire.git
Documentation: pkg.go.dev

# Functions

CheckField will return an operation that runs the provided check for the specified model and timestamp field.
CheckTag will return an operation that runs the provided check function for the specified model and timestamp tag.
Compute will return an operation that automatically runs the provided asynchronous computation.
Hash is a helper function that returns the MD5 hash of the input if present and an empty string otherwise.
NewProcessJob creates and returns a new ProcessJob with a label.
NewReactor creates and returns a new reactor.
NewRegistry will return an operation registry indexed by name.
NewScanJob creates and returns a new ScanJob with a label.
StringComputer constructs a compute function for the provided string input and generic output field.
StringHasher constructs a hasher function for the provided string field.
Test will create and yield a testing environment for the specified operation.

# Structs

Check defines a periodic model check.
Computation defines a computation.
Context holds context information for a reactor operation.
Env is a testing environment.
Operation defines a reactor operation.
ProcessJob defines a job that processes a single operation.
Reactor organizes the execution of operations based on model events (via a modifier callback), direct check calls or database scans (via periodic jobs).
Registry is a collection of known operations.
ScanJob defines a job that scans for due operations.
Status defines the status of a computation.