ingestor

package
v0.3.0-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingestor

type Ingestor interface {
	contracts.EventsServiceServer
	IngestEvent(tenantId, eventName string, data any) (*db.EventModel, error)
	IngestReplayedEvent(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(tenantId, key string, data any) (*db.EventModel, error)

func (*IngestorImpl) IngestReplayedEvent

func (i *IngestorImpl) IngestReplayedEvent(tenantId string, replayedEvent *db.EventModel) (*db.EventModel, error)

func (*IngestorImpl) List

func (*IngestorImpl) Push

func (*IngestorImpl) ReplaySingleEvent

func (i *IngestorImpl) ReplaySingleEvent(ctx context.Context, req *contracts.ReplayEventRequest) (*contracts.Event, error)

type IngestorOptFunc

type IngestorOptFunc func(*IngestorOpts)

func WithTaskQueue

func WithTaskQueue(tq taskqueue.TaskQueue) IngestorOptFunc

type IngestorOpts

type IngestorOpts struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL