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) 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) 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) IterateAllEvents(ctx context.Context, tenant string, topic string, includedEventTypes []string, ...) error
- func (c *MockClient) IterateAllEventsAfterEvent(ctx context.Context, tenant string, topic string, includedEventTypes []string, ...) error
- func (c *MockClient) IterateStream(ctx context.Context, tenant string, topic string, stream string, ...) error
- func (c *MockClient) IterateStreamAfterEvent(ctx context.Context, tenant string, topic string, stream string, ...) error
- func (c *MockClient) NewSubscription(topics []string, ignoreUnhandledEvents bool, deploymentId int64) *client.Subscription
- func (c *MockClient) Publish(ctx context.Context, topic string, events []*dto.PublishEvent) error
- func (c *MockClient) RenameEventType(ctx context.Context, topic string, oldEventType string, newEventType string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Close()
Publish(ctx context.Context, topic string, events []*dto.PublishEvent) error
NewSubscription(topics []string, ignoreUnhandledEvents bool, deploymentId int64) *client.Subscription
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)
IterateAllEvents(
ctx context.Context,
tenant string,
topic string,
includedEventTypes []string,
perPage int,
queueSize int,
handler dto.HandlerFunc,
) error
IterateAllEventsAfterEvent(
ctx context.Context,
tenant string,
topic string,
includedEventTypes []string,
eventId string,
perPage int,
queueSize int,
handler dto.HandlerFunc,
) error
IsStreamEmpty(ctx context.Context, tenant string, topic string, stream string) (bool, error)
IterateStream(
ctx context.Context,
tenant string,
topic string,
stream string,
deploymentId int64,
perPage int,
queueSize int,
handler dto.HandlerFunc,
) error
IterateStreamAfterEvent(
ctx context.Context,
tenant string,
topic string,
stream string,
eventId string,
deploymentId int64,
perPage int,
queueSize int,
handler dto.HandlerFunc,
) error
CreateStreamSnapshot(
ctx context.Context,
tenantId string,
topic string,
stream string,
lastSnapshottedEventId string,
snapshotEvent *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
RenameEventType(ctx context.Context, topic string, oldEventType string, newEventType string) error
}
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) 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) IntroduceGdprOnEventField ¶
func (*MockClient) InvalidateGdprData ¶
func (*MockClient) IsStreamEmpty ¶
func (*MockClient) IterateAllEvents ¶ added in v0.38.0
func (*MockClient) IterateAllEventsAfterEvent ¶ added in v0.38.0
func (*MockClient) IterateStream ¶ added in v0.38.0
func (*MockClient) IterateStreamAfterEvent ¶ added in v0.38.0
func (*MockClient) NewSubscription ¶
func (c *MockClient) NewSubscription( topics []string, ignoreUnhandledEvents bool, deploymentId int64, ) *client.Subscription
func (*MockClient) Publish ¶
func (c *MockClient) Publish(ctx context.Context, topic string, events []*dto.PublishEvent) error
func (*MockClient) RenameEventType ¶ added in v0.35.0
Click to show internal directories.
Click to hide internal directories.