Documentation
¶
Index ¶
- Constants
- Variables
- type Advancer
- type Behavior
- type CmdBeginArchiveRepo
- type CmdBeginDuRoot
- type CmdBeginFreezeRepo
- type CmdBeginPingRegistry
- type CmdBeginSplitRoot
- type CmdBeginUnarchiveRepo
- type CmdBeginUnfreezeRepo
- type CmdCommitArchiveRepo
- type CmdCommitDuRoot
- type CmdCommitFreezeRepo
- type CmdCommitPingRegistry
- type CmdCommitSplitRoot
- type CmdCommitUnarchiveRepo
- type CmdCommitUnfreezeRepo
- type CmdDeleteArchiveRepo
- type CmdDeleteDuRoot
- type CmdDeleteFreezeRepo
- type CmdDeletePingRegistry
- type CmdDeleteSplitRoot
- type CmdDeleteUnarchiveRepo
- type CmdDeleteUnfreezeRepo
- type CmdSnapshot
- type Event
- type Indexes
- func (r *Indexes) BeginArchiveRepo(id uuid.I, vid ulid.I, cmd *CmdBeginArchiveRepo) (ulid.I, error)
- func (r *Indexes) BeginDuRoot(id uuid.I, vid ulid.I, cmd *CmdBeginDuRoot) (ulid.I, error)
- func (r *Indexes) BeginFreezeRepo(id uuid.I, vid ulid.I, cmd *CmdBeginFreezeRepo) (ulid.I, error)
- func (r *Indexes) BeginPingRegistry(id uuid.I, vid ulid.I, cmd *CmdBeginPingRegistry) (ulid.I, error)
- func (r *Indexes) BeginSplitRoot(id uuid.I, vid ulid.I, cmd *CmdBeginSplitRoot) (ulid.I, error)
- func (r *Indexes) BeginUnarchiveRepo(id uuid.I, vid ulid.I, cmd *CmdBeginUnarchiveRepo) (ulid.I, error)
- func (r *Indexes) BeginUnfreezeRepo(id uuid.I, vid ulid.I, cmd *CmdBeginUnfreezeRepo) (ulid.I, error)
- func (r *Indexes) CommitArchiveRepo(id uuid.I, vid ulid.I, cmd *CmdCommitArchiveRepo) (ulid.I, error)
- func (r *Indexes) CommitDuRoot(id uuid.I, vid ulid.I, cmd *CmdCommitDuRoot) (ulid.I, error)
- func (r *Indexes) CommitFreezeRepo(id uuid.I, vid ulid.I, cmd *CmdCommitFreezeRepo) (ulid.I, error)
- func (r *Indexes) CommitPingRegistry(id uuid.I, vid ulid.I, cmd *CmdCommitPingRegistry) (ulid.I, error)
- func (r *Indexes) CommitSplitRoot(id uuid.I, vid ulid.I, cmd *CmdCommitSplitRoot) (ulid.I, error)
- func (r *Indexes) CommitUnarchiveRepo(id uuid.I, vid ulid.I, cmd *CmdCommitUnarchiveRepo) (ulid.I, error)
- func (r *Indexes) CommitUnfreezeRepo(id uuid.I, vid ulid.I, cmd *CmdCommitUnfreezeRepo) (ulid.I, error)
- func (r *Indexes) DeleteArchiveRepo(id uuid.I, vid ulid.I, workflowId uuid.I) (ulid.I, error)
- func (r *Indexes) DeleteDuRoot(id uuid.I, vid ulid.I, workflowId uuid.I) (ulid.I, error)
- func (r *Indexes) DeleteFreezeRepo(id uuid.I, vid ulid.I, workflowId uuid.I) (ulid.I, error)
- func (r *Indexes) DeletePingRegistry(id uuid.I, vid ulid.I, workflowId uuid.I) (ulid.I, error)
- func (r *Indexes) DeleteSplitRoot(id uuid.I, vid ulid.I, workflowId uuid.I) (ulid.I, error)
- func (r *Indexes) DeleteUnarchiveRepo(id uuid.I, vid ulid.I, workflowId uuid.I) (ulid.I, error)
- func (r *Indexes) DeleteUnfreezeRepo(id uuid.I, vid ulid.I, workflowId uuid.I) (ulid.I, error)
- func (r *Indexes) FindId(id uuid.I) (*State, error)
- func (r *Indexes) Snapshot(id uuid.I, vid ulid.I) (ulid.I, error)
- type State
Constants ¶
View Source
const ( ConfigMinEventsBetweenSnapshots = 1000 ConfigMaxSnapshotWorkflows = 200 ConfigEventConst = 1 ConfigSnapshotBaseCost = 300 ConfigSnapshotWorkflowCost = 300 )
View Source
const ConfigMaxProtoSize = 100 * 1024
View Source
const ConfigSinceEpochUpdate = ConfigSinceEpochUpdateDays * 24 * time.Hour
View Source
const ConfigSinceEpochUpdateDays = 30
`ConfigSinceEpochUpdate` is the time that must have passed since the epoch was updated before the epoch can become the new tail.
Variables ¶
View Source
var ErrInvalidCommand = errors.New("invalid workflow index command")
View Source
var ErrInvalidEventType = errors.New("invalid event type")
View Source
var ErrSmallStorageReduction = errors.New("would not save much storage")
View Source
var ErrTooManyWorkflows = errors.New("too many workflows")
View Source
var ErrUnknownWorkflow = errors.New("unknown workflow")
View Source
var NoVC = events.NoVC
View Source
var RetryNoVC = events.RetryNoVC
Functions ¶
This section is empty.
Types ¶
type Advancer ¶
type Advancer struct {
// contains filtered or unexported fields
}
The bools indicate which part of the state has been duplicated.
type Behavior ¶
type Behavior struct {
// contains filtered or unexported fields
}
func (Behavior) NewAdvancer ¶
type CmdBeginArchiveRepo ¶
func (*CmdBeginArchiveRepo) AggregateCommand ¶
func (*CmdBeginArchiveRepo) AggregateCommand()
type CmdBeginDuRoot ¶
type CmdBeginDuRoot struct { WorkflowId uuid.I WorkflowEventId ulid.I GlobalRoot string Host string HostRoot string }
func (*CmdBeginDuRoot) AggregateCommand ¶
func (*CmdBeginDuRoot) AggregateCommand()
type CmdBeginFreezeRepo ¶
func (*CmdBeginFreezeRepo) AggregateCommand ¶
func (*CmdBeginFreezeRepo) AggregateCommand()
type CmdBeginPingRegistry ¶
func (*CmdBeginPingRegistry) AggregateCommand ¶
func (*CmdBeginPingRegistry) AggregateCommand()
type CmdBeginSplitRoot ¶
type CmdBeginSplitRoot struct { WorkflowId uuid.I WorkflowEventId ulid.I GlobalRoot string Host string HostRoot string }
func (*CmdBeginSplitRoot) AggregateCommand ¶
func (*CmdBeginSplitRoot) AggregateCommand()
type CmdBeginUnarchiveRepo ¶
func (*CmdBeginUnarchiveRepo) AggregateCommand ¶
func (*CmdBeginUnarchiveRepo) AggregateCommand()
type CmdBeginUnfreezeRepo ¶
func (*CmdBeginUnfreezeRepo) AggregateCommand ¶
func (*CmdBeginUnfreezeRepo) AggregateCommand()
type CmdCommitArchiveRepo ¶
func (*CmdCommitArchiveRepo) AggregateCommand ¶
func (*CmdCommitArchiveRepo) AggregateCommand()
type CmdCommitDuRoot ¶
func (*CmdCommitDuRoot) AggregateCommand ¶
func (*CmdCommitDuRoot) AggregateCommand()
type CmdCommitFreezeRepo ¶
func (*CmdCommitFreezeRepo) AggregateCommand ¶
func (*CmdCommitFreezeRepo) AggregateCommand()
type CmdCommitPingRegistry ¶
func (*CmdCommitPingRegistry) AggregateCommand ¶
func (*CmdCommitPingRegistry) AggregateCommand()
type CmdCommitSplitRoot ¶
func (*CmdCommitSplitRoot) AggregateCommand ¶
func (*CmdCommitSplitRoot) AggregateCommand()
type CmdCommitUnarchiveRepo ¶
func (*CmdCommitUnarchiveRepo) AggregateCommand ¶
func (*CmdCommitUnarchiveRepo) AggregateCommand()
type CmdCommitUnfreezeRepo ¶
func (*CmdCommitUnfreezeRepo) AggregateCommand ¶
func (*CmdCommitUnfreezeRepo) AggregateCommand()
type CmdDeleteArchiveRepo ¶
func (*CmdDeleteArchiveRepo) AggregateCommand ¶
func (*CmdDeleteArchiveRepo) AggregateCommand()
type CmdDeleteDuRoot ¶
func (*CmdDeleteDuRoot) AggregateCommand ¶
func (*CmdDeleteDuRoot) AggregateCommand()
type CmdDeleteFreezeRepo ¶
func (*CmdDeleteFreezeRepo) AggregateCommand ¶
func (*CmdDeleteFreezeRepo) AggregateCommand()
type CmdDeletePingRegistry ¶
func (*CmdDeletePingRegistry) AggregateCommand ¶
func (*CmdDeletePingRegistry) AggregateCommand()
type CmdDeleteSplitRoot ¶
func (*CmdDeleteSplitRoot) AggregateCommand ¶
func (*CmdDeleteSplitRoot) AggregateCommand()
type CmdDeleteUnarchiveRepo ¶
func (*CmdDeleteUnarchiveRepo) AggregateCommand ¶
func (*CmdDeleteUnarchiveRepo) AggregateCommand()
type CmdDeleteUnfreezeRepo ¶
func (*CmdDeleteUnfreezeRepo) AggregateCommand ¶
func (*CmdDeleteUnfreezeRepo) AggregateCommand()
type CmdSnapshot ¶
type CmdSnapshot struct {
IfStorageReduction bool
}
func (*CmdSnapshot) AggregateCommand ¶
func (*CmdSnapshot) AggregateCommand()
type Event ¶
func (*Event) UnmarshalProto ¶
type Indexes ¶
type Indexes struct {
// contains filtered or unexported fields
}
func (*Indexes) BeginArchiveRepo ¶
func (*Indexes) BeginDuRoot ¶
func (*Indexes) BeginFreezeRepo ¶
func (*Indexes) BeginPingRegistry ¶
func (*Indexes) BeginSplitRoot ¶
func (*Indexes) BeginUnarchiveRepo ¶
func (*Indexes) BeginUnfreezeRepo ¶
func (*Indexes) CommitArchiveRepo ¶
func (*Indexes) CommitDuRoot ¶
func (*Indexes) CommitFreezeRepo ¶
func (*Indexes) CommitPingRegistry ¶
func (*Indexes) CommitSplitRoot ¶
func (*Indexes) CommitUnarchiveRepo ¶
func (*Indexes) CommitUnfreezeRepo ¶
func (*Indexes) DeleteArchiveRepo ¶
func (*Indexes) DeleteDuRoot ¶
func (*Indexes) DeleteFreezeRepo ¶
func (*Indexes) DeletePingRegistry ¶
func (*Indexes) DeleteSplitRoot ¶
func (*Indexes) DeleteUnarchiveRepo ¶
func (*Indexes) DeleteUnfreezeRepo ¶
Click to show internal directories.
Click to hide internal directories.