Documentation ¶
Index ¶
- type DocumentStoreMock
- type SenderMock
- type StoreMock
- func (s *StoreMock) DataKey(ctx context.Context, ie interfaces.IncomingEventInterface, ...) string
- func (s *StoreMock) Enqueue(ctx context.Context, key string, value string, ttl time.Duration) (bool, error)
- func (s *StoreMock) Get(ctx context.Context, key string) (string, bool, time.Duration, error)
- func (s *StoreMock) GetQueue(ctx context.Context, key string) ([]string, bool, time.Duration, error)
- func (s *StoreMock) Remove(ctx context.Context, key string) (bool, error)
- func (s *StoreMock) Set(ctx context.Context, key string, value string, ttl time.Duration) (bool, error)
- func (s *StoreMock) Update(ctx context.Context, key string, value string) (bool, error)
- type ThrottleMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentStoreMock ¶
DocumentStoreMock - Mock of DocumentStoreInterface
func (*DocumentStoreMock) GetDocument ¶
func (ds *DocumentStoreMock) GetDocument(ctx context.Context, ie interfaces.IncomingEventInterface) map[string]interface{}
Get - Get value from store, return with remaining time
type SenderMock ¶
SenderMock - Mock of SenderInterface
func (*SenderMock) SendEvent ¶
func (s *SenderMock) SendEvent(ctx context.Context, ie interfaces.IncomingEventInterface, id interfaces.DestinationInterface) error
SendEvent - Send an event
type StoreMock ¶
StoreMock - Mock of StoreInterface
func (*StoreMock) DataKey ¶
func (s *StoreMock) DataKey(ctx context.Context, ie interfaces.IncomingEventInterface, idest interfaces.DestinationInterface, prefix string, suffix string) string
DataKey - Generate DataKey with events and destination (Won't Mock)
Click to show internal directories.
Click to hide internal directories.