Documentation
¶
Overview ¶
Package status holds the sealed queue status type and its three cases. They are re-exported from the top-level fal package (fal.Status, fal.Queued, ...).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Completed ¶
type Completed struct {
Logs []map[string]any
Metrics map[string]any
Error string
ErrorType string
}
Completed means the request has finished (successfully or with an error). It mirrors fal_client.Completed.
type InProgress ¶
InProgress means the request is executing. It mirrors fal_client.InProgress.
type Queued ¶
type Queued struct {
Position int
}
Queued means the request is waiting in the queue. It mirrors fal_client.Queued.
type Status ¶
type Status interface {
// contains filtered or unexported methods
}
Status is the sealed result of a queue status poll. The only implementations are Queued, InProgress and Completed; the unexported isStatus method prevents other packages from adding cases, so a type switch over these three is effectively exhaustive.
switch s := st.(type) {
case status.Queued: // s.Position
case status.InProgress: // s.Logs
case status.Completed: // s.Metrics, s.Error
}