Documentation ¶
Index ¶
- type Ingestor
- type IngestorImpl
- func (i *IngestorImpl) IngestEvent(ctx context.Context, tenantId, key string, data any) (*db.EventModel, error)
- func (i *IngestorImpl) IngestReplayedEvent(ctx context.Context, tenantId string, replayedEvent *db.EventModel) (*db.EventModel, error)
- func (i *IngestorImpl) List(ctx context.Context, req *contracts.ListEventRequest) (*contracts.ListEventResponse, error)
- func (i *IngestorImpl) Push(ctx context.Context, req *contracts.PushEventRequest) (*contracts.Event, error)
- func (i *IngestorImpl) ReplaySingleEvent(ctx context.Context, req *contracts.ReplayEventRequest) (*contracts.Event, error)
- type IngestorOptFunc
- type IngestorOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ingestor ¶
type Ingestor interface { contracts.EventsServiceServer IngestEvent(ctx context.Context, tenantId, eventName string, data any) (*db.EventModel, error) IngestReplayedEvent(ctx context.Context, tenantId string, replayedEvent *db.EventModel) (*db.EventModel, error) }
func NewIngestor ¶
func NewIngestor(fs ...IngestorOptFunc) (Ingestor, error)
type IngestorImpl ¶
type IngestorImpl struct { contracts.UnimplementedEventsServiceServer // contains filtered or unexported fields }
func (*IngestorImpl) IngestEvent ¶
func (i *IngestorImpl) IngestEvent(ctx context.Context, tenantId, key string, data any) (*db.EventModel, error)
func (*IngestorImpl) IngestReplayedEvent ¶
func (i *IngestorImpl) IngestReplayedEvent(ctx context.Context, tenantId string, replayedEvent *db.EventModel) (*db.EventModel, error)
func (*IngestorImpl) List ¶
func (i *IngestorImpl) List(ctx context.Context, req *contracts.ListEventRequest) (*contracts.ListEventResponse, error)
func (*IngestorImpl) Push ¶
func (i *IngestorImpl) Push(ctx context.Context, req *contracts.PushEventRequest) (*contracts.Event, error)
func (*IngestorImpl) ReplaySingleEvent ¶
func (i *IngestorImpl) ReplaySingleEvent(ctx context.Context, req *contracts.ReplayEventRequest) (*contracts.Event, error)
type IngestorOptFunc ¶
type IngestorOptFunc func(*IngestorOpts)
func WithEventRepository ¶
func WithEventRepository(r repository.EventRepository) IngestorOptFunc
func WithTaskQueue ¶
func WithTaskQueue(tq taskqueue.TaskQueue) IngestorOptFunc
type IngestorOpts ¶
type IngestorOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.