Documentation ¶
Index ¶
- Constants
- type Current
- type History
- func (h *History) GetAll() []HistoryNode
- func (h *History) GetFirst() (HistoryNode, error)
- func (h *History) GetLast() (HistoryNode, error)
- func (h *History) GetNext(historyUID string) (HistoryNode, error)
- func (h *History) GetPrev(historyUID string) (HistoryNode, error)
- func (h *History) GetRecord(historyUID string) (HistoryNode, error)
- func (h *History) IsHistoryExist(historyUID string) bool
- func (h *History) Record(current HistoryNode)
- func (h *History) TotalRecord() int
- type HistoryNode
- type Lifecycle
- type LifecycleBuilder
Constants ¶
View Source
const ( LifecycleActionContinue = "continue" LifecycleActionDone = "done" LifecycleEventError = "error" LifecycleEventStop = "stop" LifecycleEventSuccess = "success" LifecycleEventDone = "done" LifecycleEventStart = "start" LifecycleEventPause = "pause" LifecycleStateInit = "init" LifecycleStateDone = "done" LifecycleOnStopped domain.Event = "loop_stopped" LifecycleOnFinishedActionHandler domain.Event = "action_handler_finished" LifecycleOnFinishedLoop domain.Event = "loop_finished" LifecycleOnStateChanged domain.Event = "state_changed" LifecycleOnHistoryRecorded domain.Event = "history_recorded" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶
func NewHistory ¶
func NewHistory() *History
func (*History) GetAll ¶
func (h *History) GetAll() []HistoryNode
func (*History) GetFirst ¶
func (h *History) GetFirst() (HistoryNode, error)
func (*History) GetLast ¶
func (h *History) GetLast() (HistoryNode, error)
func (*History) IsHistoryExist ¶
func (*History) Record ¶
func (h *History) Record(current HistoryNode)
func (*History) TotalRecord ¶
type HistoryNode ¶
func NewHistoryNode ¶
func NewHistoryNode(uidgen uid.UUID, current Current) (HistoryNode, error)
func (HistoryNode) GetState ¶
func (hn HistoryNode) GetState() Current
func (HistoryNode) GetUID ¶
func (hn HistoryNode) GetUID() string
type Lifecycle ¶
type Lifecycle struct { *core.Component domain.Aggregate // contains filtered or unexported fields }
func NewLifecycle ¶
func NewLifecycle(pid, requestID string, uidgen uid.UUID, query metadata.QueryBuilder, handler runner.RunnerBuilder) *Lifecycle
func (*Lifecycle) GetHistory ¶
func (*Lifecycle) GetLatestState ¶
func (l *Lifecycle) GetLatestState() (HistoryNode, error)
type LifecycleBuilder ¶
Click to show internal directories.
Click to hide internal directories.