Documentation ¶
Index ¶
- type Ingestor
- type IngestorImpl
- func (i *IngestorImpl) IngestEvent(ctx context.Context, tenantId, key string, data []byte, metadata []byte) (*dbsqlc.Event, error)
- func (i *IngestorImpl) IngestReplayedEvent(ctx context.Context, tenantId string, replayedEvent *dbsqlc.Event) (*dbsqlc.Event, error)
- func (i *IngestorImpl) Push(ctx context.Context, req *contracts.PushEventRequest) (*contracts.Event, error)
- func (i *IngestorImpl) PutLog(ctx context.Context, req *contracts.PutLogRequest) (*contracts.PutLogResponse, error)
- func (i *IngestorImpl) PutStreamEvent(ctx context.Context, req *contracts.PutStreamEventRequest) (*contracts.PutStreamEventResponse, error)
- func (i *IngestorImpl) ReplaySingleEvent(ctx context.Context, req *contracts.ReplayEventRequest) (*contracts.Event, error)
- type IngestorOptFunc
- func WithEntitlementsRepository(r repository.EntitlementsRepository) IngestorOptFunc
- func WithEventRepository(r repository.EventEngineRepository) IngestorOptFunc
- func WithLogRepository(r repository.LogsEngineRepository) IngestorOptFunc
- func WithMessageQueue(mq msgqueue.MessageQueue) IngestorOptFunc
- func WithStreamEventsRepository(r repository.StreamEventsEngineRepository) 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 []byte, metadata []byte) (*dbsqlc.Event, error) IngestReplayedEvent(ctx context.Context, tenantId string, replayedEvent *dbsqlc.Event) (*dbsqlc.Event, 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 (*IngestorImpl) IngestReplayedEvent ¶
func (*IngestorImpl) Push ¶
func (i *IngestorImpl) Push(ctx context.Context, req *contracts.PushEventRequest) (*contracts.Event, error)
func (*IngestorImpl) PutLog ¶ added in v0.14.0
func (i *IngestorImpl) PutLog(ctx context.Context, req *contracts.PutLogRequest) (*contracts.PutLogResponse, error)
func (*IngestorImpl) PutStreamEvent ¶ added in v0.19.0
func (i *IngestorImpl) PutStreamEvent(ctx context.Context, req *contracts.PutStreamEventRequest) (*contracts.PutStreamEventResponse, error)
func (*IngestorImpl) ReplaySingleEvent ¶
func (i *IngestorImpl) ReplaySingleEvent(ctx context.Context, req *contracts.ReplayEventRequest) (*contracts.Event, error)
type IngestorOptFunc ¶
type IngestorOptFunc func(*IngestorOpts)
func WithEntitlementsRepository ¶ added in v0.31.0
func WithEntitlementsRepository(r repository.EntitlementsRepository) IngestorOptFunc
func WithEventRepository ¶
func WithEventRepository(r repository.EventEngineRepository) IngestorOptFunc
func WithLogRepository ¶ added in v0.14.0
func WithLogRepository(r repository.LogsEngineRepository) IngestorOptFunc
func WithMessageQueue ¶ added in v0.16.0
func WithMessageQueue(mq msgqueue.MessageQueue) IngestorOptFunc
func WithStreamEventsRepository ¶ added in v0.19.0
func WithStreamEventsRepository(r repository.StreamEventsEngineRepository) IngestorOptFunc
type IngestorOpts ¶
type IngestorOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.