Help us shape the future of Go! Take the 2026 Go Developer Survey

setupchecklist

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package setupchecklist reads the Workspace's Setup checklist (GLOSSARY "Setup checklist"): five steps, each read off rows the Workspace already has, never ticked by hand. It is a point-in-time read model with no state of its own; no step blocks another.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checklist

type Checklist struct {
	Steps Steps
}

Checklist is the read model for one Workspace.

func Read

func Read(ctx context.Context, s *ent.Scoped) (Checklist, error)

Read computes the checklist of the Workspace behind s.

func (Checklist) Complete

func (c Checklist) Complete() bool

Complete reports whether every required step is done. The Test inbox step is a way to see the product work before a provider exists, so a Workspace with a real provider is not held to it.

type Status

type Status string

Status is where one step stands. Only the Sending domain step is ever Pending.

const (
	Todo    Status = "todo"
	Pending Status = "pending"
	Done    Status = "done"
)

type Steps

type Steps struct {
	Integration, TestInbox, SendingDomain, Contact, SentEmail Status
}

Steps are the checklist's steps, in the order it shows them.

Jump to

Keyboard shortcuts

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