wizard

package
v0.15.10-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Get(context.Context) (*Wizard, error)
	Upsert(context.Context, *Wizard) error
}

func NewRepository

func NewRepository(db *sql.DB) Repository

type Step

type Step struct {
	ID          string     `json:"id"`
	State       StepState  `json:"state"`
	CompletedAt *time.Time `json:"completed_at"`
}

type StepState

type StepState string
const (
	StepStatusPending StepState = "pending"
	StepStatusRunning StepState = "inProgress"
	StepStatusDone    StepState = "completed"
)

type Wizard

type Wizard struct {
	Steps []Step `json:"steps"`
}

Jump to

Keyboard shortcuts

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