Documentation ¶
Index ¶
- func GetSignalChannel[T any](ctx sync.Context, wf *WfState, name string) sync.Channel[T]
- func NewReplayLogger(replayer Replayer, logger *slog.Logger) *slog.Logger
- func ReceiveSignal(wf *WfState, name string, arg payload.Payload)
- func WithWorkflowState(ctx sync.Context, wfState *WfState) sync.Context
- type DecodingSettable
- type Replayer
- type WfState
- func (wf *WfState) AddCommand(cmd command.Command)
- func (wf *WfState) CommandByScheduleEventID(scheduleEventID int64) command.Command
- func (wf *WfState) Commands() []command.Command
- func (wf *WfState) FutureByScheduleEventID(scheduleEventID int64) (*DecodingSettable, bool)
- func (wf *WfState) GetNextScheduleEventID() int64
- func (wf *WfState) HasPendingFutures() bool
- func (wf *WfState) Instance() *core.WorkflowInstance
- func (wf *WfState) Logger() *slog.Logger
- func (wf *WfState) PendingFutureNames() map[int64]string
- func (wf *WfState) RemoveFuture(scheduleEventID int64)
- func (wf *WfState) Replaying() bool
- func (wf *WfState) SetReplaying(replaying bool)
- func (wf *WfState) SetTime(t time.Time)
- func (wf *WfState) Time() time.Time
- func (wf *WfState) Tracer() trace.Tracer
- func (wf *WfState) TrackFuture(scheduleEventID int64, f *DecodingSettable)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSignalChannel ¶
func NewReplayLogger ¶ added in v0.0.9
Types ¶
type DecodingSettable ¶
func AsDecodingSettable ¶
func AsDecodingSettable[T any](cv converter.Converter, name string, f sync.SettableFuture[T]) *DecodingSettable
Use this to track futures for the workflow state. It's required to map the generic Future interface to a type without type parameters.
type WfState ¶
type WfState struct {
// contains filtered or unexported fields
}
func NewWorkflowState ¶
func WorkflowState ¶
func (*WfState) AddCommand ¶
func (*WfState) CommandByScheduleEventID ¶ added in v0.4.0
func (*WfState) FutureByScheduleEventID ¶
func (wf *WfState) FutureByScheduleEventID(scheduleEventID int64) (*DecodingSettable, bool)
func (*WfState) GetNextScheduleEventID ¶
func (*WfState) HasPendingFutures ¶ added in v0.6.0
func (*WfState) Instance ¶
func (wf *WfState) Instance() *core.WorkflowInstance
func (*WfState) PendingFutureNames ¶ added in v0.18.3
func (*WfState) RemoveFuture ¶
func (*WfState) SetReplaying ¶
func (*WfState) TrackFuture ¶
func (wf *WfState) TrackFuture(scheduleEventID int64, f *DecodingSettable)
Click to show internal directories.
Click to hide internal directories.