Documentation ¶ Index ¶ Constants func Subscribe(kind string, h Handler) type Emitter func New(pool *pgxpool.Pool, wks *workers.Workers, opts ...Option) (*Emitter, error) func (e *Emitter) Emit(ctx context.Context, tx pgx.Tx, ev Event, opts ...river.InsertOpts) error type Event type Handler type Option Constants ¶ View Source const QueueEvents = "events" Variables ¶ This section is empty. Functions ¶ func Subscribe ¶ func Subscribe(kind string, h Handler) Types ¶ type Emitter ¶ type Emitter struct { // contains filtered or unexported fields } func New ¶ func New(pool *pgxpool.Pool, wks *workers.Workers, opts ...Option) (*Emitter, error) func (*Emitter) Emit ¶ func (e *Emitter) Emit(ctx context.Context, tx pgx.Tx, ev Event, opts ...river.InsertOpts) error type Event ¶ type Event struct { Kind string WorkspaceID uuid.UUID Payload []byte IDempotencyKey string } type Handler ¶ type Handler func(ctx context.Context, ev Event) error type Option ¶ type Option func(*river.Config) Source Files ¶ View all Source files emit.golifecycle.goregistry.go Click to show internal directories. Click to hide internal directories.