Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventTimeSource ¶
type EventTimeSource struct {
// contains filtered or unexported fields
}
EventTimeSource serves the fake controlled time.
func NewEventTimeSource ¶
func NewEventTimeSource() *EventTimeSource
func (*EventTimeSource) Now ¶
func (s *EventTimeSource) Now() time.Time
func (*EventTimeSource) Update ¶
func (s *EventTimeSource) Update(now time.Time) *EventTimeSource
type TimeSource ¶
TimeSource is an interface for any entity that provides the current time.
func NewRealTimeSource ¶
func NewRealTimeSource() TimeSource
func NewTickingTimeSource ¶
func NewTickingTimeSource() TimeSource
func NewWorkflowTimeSource ¶
func NewWorkflowTimeSource(ctx workflow.Context) TimeSource
Click to show internal directories.
Click to hide internal directories.