Documentation
¶
Index ¶
- func NewHandler(ignoreUnhandledEvents bool) *handler
- type LastEventCheckFunc
- type Service
- func (s *Service) CreateStreamSnapshot(ctx context.Context, tenantId string, topic string, stream string, ...) error
- func (s *Service) GetEvent(ctx context.Context, tenantId string, topic string, eventId string) (*dto.SubscriptionEvent, error)
- func (s *Service) GetLastEvent(ctx context.Context, tenantId string, topic string) (*dto.SubscriptionEvent, error)
- func (s *Service) GetLastEventByTypes(ctx context.Context, tenantId string, topic string, types []string) (*dto.SubscriptionEvent, error)
- func (s *Service) GetLastHandledEvent(ctx context.Context, tenantId string, topic string) (*dto.SubscriptionEvent, error)
- func (s *Service) IntroduceGdprOnEventField(ctx context.Context, tenantId string, topic string, eventId string, ...) error
- func (s *Service) InvalidateGdprData(ctx context.Context, tenantId string, topic string, gdprId string) error
- func (s *Service) IsStreamEmpty(ctx context.Context, tenant string, topic string, stream string) (bool, error)
- func (s *Service) IterateAllEvents(ctx context.Context, tenant string, topic string, types []string, perPage int, ...) error
- func (s *Service) IterateAllEventsAfterEvent(ctx context.Context, tenant string, topic string, types []string, ...) error
- func (s *Service) IterateStream(ctx context.Context, tenant string, topic string, stream string, ...) error
- func (s *Service) IterateStreamAfterEvent(ctx context.Context, tenant string, topic string, stream string, ...) error
- func (s *Service) ListErroneousEvents(ctx context.Context, tenantId string, topic string, eventTypes []string, ...) ([]*dto.ErroneousEvent, error)
- func (s *Service) NewSubscription(topics []string, ignoreUnhandledEvents bool, deploymentId int64, ...) *Subscription
- func (s *Service) Publish(ctx context.Context, topic string, events []*dto.PublishEvent) error
- func (s *Service) RenameEventType(ctx context.Context, topic string, oldEventType string, newEventType string) error
- func (s *Service) ResendErroneousEvent(ctx context.Context, tenantId string, topic string, consumerGroup string, ...) error
- func (s *Service) WaitForTransactionalConsistency(ctx context.Context, tenantId string, topic string, correlationId string, ...) error
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(ignoreUnhandledEvents bool) *handler
Types ¶
type LastEventCheckFunc ¶
type LastEventCheckFunc func(ctx context.Context, lastEvent *dto.SubscriptionEvent) bool
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( ctx context.Context, config *config.Config, client managementpb.ServiceClient, logger golog.Logger, ) (*Service, error)
func (*Service) CreateStreamSnapshot ¶
func (*Service) GetLastEvent ¶
func (*Service) GetLastEventByTypes ¶
func (*Service) GetLastHandledEvent ¶ added in v0.41.0
func (*Service) IntroduceGdprOnEventField ¶
func (*Service) InvalidateGdprData ¶
func (*Service) IsStreamEmpty ¶
func (*Service) IterateAllEvents ¶
func (*Service) IterateAllEventsAfterEvent ¶
func (*Service) IterateStream ¶
func (*Service) IterateStreamAfterEvent ¶
func (*Service) ListErroneousEvents ¶ added in v0.45.0
func (*Service) NewSubscription ¶
func (*Service) RenameEventType ¶ added in v0.35.0
func (*Service) ResendErroneousEvent ¶ added in v0.45.0
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func (*Subscription) Start ¶
func (s *Subscription) Start() error
func (*Subscription) Stop ¶
func (s *Subscription) Stop()
func (*Subscription) UseHandler ¶
func (s *Subscription) UseHandler(eventType string, handlerFunc dto.HandlerFunc)
func (*Subscription) UseHandlerForAllEventTypes ¶
func (s *Subscription) UseHandlerForAllEventTypes(handlerFunc dto.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.