Documentation
¶
Overview ¶
Package inuse is the one shape of a refused removal (ADR 0049): a row that live work still uses is not removed, and the refusal names the users. Each domain module returns an *Error from its delete; each API surface renders it as its contract's InUseProblem (409, `usedBy`).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind string
Kind is what a user of a row is.
const ( // Broadcast is a Broadcast that has not finished sending. Broadcast Kind = "broadcast" // Automation is an Automation: one whose steps use the row, or an active one. Automation Kind = "automation" // Segment is a Segment whose rule names the row. Segment Kind = "segment" // Enrollment stands for the Enrollments of an Automation: one User naming the // Automation, with their Count. Enrollment Kind = "enrollment" )
The kinds of live user a removal can find; each has a value of the contract's UsedByKind.
type User ¶
type User struct {
Kind Kind
ID int64
Name string
// Count is how many rows an Enrollment User stands for; every other kind is one row and
// leaves it zero.
Count int
}
User is one row that uses the row a removal was refused for.
func Broadcasts ¶
Broadcasts maps Broadcasts to their Users, in the order given.
Click to show internal directories.
Click to hide internal directories.