Documentation ¶
Overview ¶
Package events is a generated GoMock package.
Index ¶
- type Cache
- type CacheImpl
- func (e *CacheImpl) DeleteEvent(namespaceID, workflowID, runID string, eventID int64)
- func (e *CacheImpl) GetEvent(namespaceID, workflowID, runID string, firstEventID, eventID int64, ...) (*historypb.HistoryEvent, error)
- func (e *CacheImpl) PutEvent(namespaceID, workflowID, runID string, eventID int64, ...)
- type MockCache
- func (m *MockCache) DeleteEvent(namespaceID, workflowID, runID string, eventID int64)
- func (m *MockCache) EXPECT() *MockCacheMockRecorder
- func (m *MockCache) GetEvent(namespaceID, workflowID, runID string, firstEventID, eventID int64, ...) (*history.HistoryEvent, error)
- func (m *MockCache) PutEvent(namespaceID, workflowID, runID string, eventID int64, ...)
- type MockCacheMockRecorder
- func (mr *MockCacheMockRecorder) DeleteEvent(namespaceID, workflowID, runID, eventID interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) GetEvent(namespaceID, workflowID, runID, firstEventID, eventID, branchToken interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) PutEvent(namespaceID, workflowID, runID, eventID, event interface{}) *gomock.Call
- type Notification
- type Notifier
- type NotifierImpl
- func (notifier *NotifierImpl) NotifyNewHistoryEvent(event *Notification)
- func (notifier *NotifierImpl) Start()
- func (notifier *NotifierImpl) Stop()
- func (notifier *NotifierImpl) UnwatchHistoryEvent(identifier definition.WorkflowIdentifier, subscriberID string) error
- func (notifier *NotifierImpl) WatchHistoryEvent(identifier definition.WorkflowIdentifier) (string, chan *Notification, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { GetEvent( namespaceID string, workflowID string, runID string, firstEventID int64, eventID int64, branchToken []byte, ) (*historypb.HistoryEvent, error) PutEvent( namespaceID string, workflowID string, runID string, eventID int64, event *historypb.HistoryEvent, ) DeleteEvent( namespaceID string, workflowID string, runID string, eventID int64, ) }
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache is a mock of Cache interface.
func NewMockCache ¶
func NewMockCache(ctrl *gomock.Controller) *MockCache
NewMockCache creates a new mock instance.
func (*MockCache) DeleteEvent ¶
DeleteEvent mocks base method.
func (*MockCache) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) DeleteEvent ¶
func (mr *MockCacheMockRecorder) DeleteEvent(namespaceID, workflowID, runID, eventID interface{}) *gomock.Call
DeleteEvent indicates an expected call of DeleteEvent.
func (*MockCacheMockRecorder) GetEvent ¶
func (mr *MockCacheMockRecorder) GetEvent(namespaceID, workflowID, runID, firstEventID, eventID, branchToken interface{}) *gomock.Call
GetEvent indicates an expected call of GetEvent.
func (*MockCacheMockRecorder) PutEvent ¶
func (mr *MockCacheMockRecorder) PutEvent(namespaceID, workflowID, runID, eventID, event interface{}) *gomock.Call
PutEvent indicates an expected call of PutEvent.
type Notification ¶
type Notification struct { ID definition.WorkflowIdentifier LastFirstEventID int64 NextEventID int64 PreviousStartedEventID int64 Timestamp time.Time CurrentBranchToken []byte WorkflowState enumsspb.WorkflowExecutionState WorkflowStatus enumspb.WorkflowExecutionStatus }
func NewNotification ¶
func NewNotification( namespaceID string, workflowExecution *commonpb.WorkflowExecution, lastFirstEventID int64, nextEventID int64, previousStartedEventID int64, currentBranchToken []byte, workflowState enumsspb.WorkflowExecutionState, workflowStatus enumspb.WorkflowExecutionStatus, ) *Notification
type Notifier ¶
type Notifier interface { common.Daemon NotifyNewHistoryEvent(event *Notification) WatchHistoryEvent(identifier definition.WorkflowIdentifier) (string, chan *Notification, error) UnwatchHistoryEvent(identifier definition.WorkflowIdentifier, subscriberID string) error }
type NotifierImpl ¶
type NotifierImpl struct {
// contains filtered or unexported fields
}
func NewNotifier ¶
func NewNotifier( timeSource clock.TimeSource, metrics metrics.Client, workflowIDToShardID func(string, string) int32, ) *NotifierImpl
func (*NotifierImpl) NotifyNewHistoryEvent ¶
func (notifier *NotifierImpl) NotifyNewHistoryEvent(event *Notification)
func (*NotifierImpl) Start ¶
func (notifier *NotifierImpl) Start()
func (*NotifierImpl) Stop ¶
func (notifier *NotifierImpl) Stop()
func (*NotifierImpl) UnwatchHistoryEvent ¶
func (notifier *NotifierImpl) UnwatchHistoryEvent( identifier definition.WorkflowIdentifier, subscriberID string) error
func (*NotifierImpl) WatchHistoryEvent ¶
func (notifier *NotifierImpl) WatchHistoryEvent( identifier definition.WorkflowIdentifier) (string, chan *Notification, error)
Click to show internal directories.
Click to hide internal directories.