Documentation
¶
Index ¶
- type Client
- type MockClient
- func (c *MockClient) Close()
- func (c *MockClient) CreateStreamSnapshot(ctx context.Context, tenantId string, topic string, stream string, ...) error
- func (c *MockClient) GetAllEvents(ctx context.Context, tenant string, topic string, includedEventTypes []string, ...) error
- func (c *MockClient) GetAllEventsAfterEvent(ctx context.Context, tenant string, topic string, includedEventTypes []string, ...) error
- func (c *MockClient) GetEvent(ctx context.Context, tenantId string, topic string, eventId string) (*dto.SubscriptionEvent, error)
- func (c *MockClient) GetLastEvent(ctx context.Context, tenantId string, topic string) (*dto.SubscriptionEvent, error)
- func (c *MockClient) GetLastEventByTypes(ctx context.Context, tenantId string, topic string, types []string) (*dto.SubscriptionEvent, error)
- func (c *MockClient) GetStream(ctx context.Context, tenant string, topic string, stream string, perPage int, ...) error
- func (c *MockClient) GetStreamAfterEvent(ctx context.Context, tenant string, topic string, stream string, ...) error
- func (c *MockClient) IntroduceGdprOnEventField(ctx context.Context, tenantId string, topic string, eventId string, ...) error
- func (c *MockClient) InvalidateGdprData(ctx context.Context, tenantId string, topic string, gdprId string) error
- func (c *MockClient) IsStreamEmpty(ctx context.Context, tenant string, topic string, stream string) (bool, error)
- func (c *MockClient) NewSubscription(topics []string, ignoreUnhandledEvents bool) *client.Subscription
- func (c *MockClient) Publish(ctx context.Context, topic string, events []*dto.PublishEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GetAllEvents(ctx context.Context, tenant string, topic string, includedEventTypes []string, perPage int, queueSize int, handler dto.HandlerFunc) error
GetAllEventsAfterEvent(ctx context.Context, tenant string, topic string, includedEventTypes []string, eventId string, perPage int, queueSize int, handler dto.HandlerFunc) error
GetStream(ctx context.Context, tenant string, topic string, stream string, perPage int, queueSize int, handler dto.HandlerFunc) error
GetStreamAfterEvent(ctx context.Context, tenant string, topic string, stream string, eventId string, perPage int, queueSize int, handler dto.HandlerFunc) error
IsStreamEmpty(ctx context.Context, tenant string, topic string, stream string) (bool, error)
GetEvent(ctx context.Context, tenantId string, topic string, eventId string) (*dto.SubscriptionEvent, error)
GetLastEvent(ctx context.Context, tenantId string, topic string) (*dto.SubscriptionEvent, error)
GetLastEventByTypes(ctx context.Context, tenantId string, topic string, types []string) (*dto.SubscriptionEvent, error)
NewSubscription(topics []string, ignoreUnhandledEvents bool) *client.Subscription
Publish(ctx context.Context, topic string, events []*dto.PublishEvent) error
InvalidateGdprData(ctx context.Context, tenantId string, topic string, gdprId string) error
IntroduceGdprOnEventField(ctx context.Context, tenantId string, topic string, eventId string, fieldName string, defaultValue string) error
CreateStreamSnapshot(ctx context.Context, tenantId string, topic string, stream string, lastSnapshottedEventId string, snapshotEvent *dto.PublishEvent) error
Close()
}
type MockClient ¶
func (*MockClient) Close ¶
func (c *MockClient) Close()
func (*MockClient) CreateStreamSnapshot ¶
func (c *MockClient) CreateStreamSnapshot(ctx context.Context, tenantId string, topic string, stream string, lastSnapshottedEventId string, snapshotEvent *dto.PublishEvent) error
func (*MockClient) GetAllEvents ¶
func (*MockClient) GetAllEventsAfterEvent ¶
func (*MockClient) GetEvent ¶
func (c *MockClient) GetEvent(ctx context.Context, tenantId string, topic string, eventId string) (*dto.SubscriptionEvent, error)
func (*MockClient) GetLastEvent ¶
func (c *MockClient) GetLastEvent(ctx context.Context, tenantId string, topic string) (*dto.SubscriptionEvent, error)
func (*MockClient) GetLastEventByTypes ¶
func (c *MockClient) GetLastEventByTypes(ctx context.Context, tenantId string, topic string, types []string) (*dto.SubscriptionEvent, error)
func (*MockClient) GetStreamAfterEvent ¶
func (*MockClient) IntroduceGdprOnEventField ¶
func (*MockClient) InvalidateGdprData ¶
func (*MockClient) IsStreamEmpty ¶
func (*MockClient) NewSubscription ¶
func (c *MockClient) NewSubscription(topics []string, ignoreUnhandledEvents bool) *client.Subscription
func (*MockClient) Publish ¶
func (c *MockClient) Publish(ctx context.Context, topic string, events []*dto.PublishEvent) error
Click to show internal directories.
Click to hide internal directories.