Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContextKeyJobName = ContextKey("name") ContextKeyId = ContextKey("id") ContextKeyRunId = ContextKey("run-id") )
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶ added in v0.0.3
type ContextKey string
type Registerer ¶
type Schedules ¶
type Schedules = map[string]projection.Schedule
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) Start ¶
func (svc *Worker) Start(ctx context.Context, opts ...projection.SubscribeOption) (<-chan error, error)
type WorkerOption ¶
type WorkerOption func(*Worker)
func WithErrorFunc ¶ added in v0.0.3
func WithErrorFunc(fn func(projection.Job, error)) WorkerOption
func WithLogger ¶
func WithLogger(logger *zap.SugaredLogger) WorkerOption
func WithProjector ¶
func WithProjector(projector Projector) WorkerOption
func WithSchedules ¶
func WithSchedules(schedules Schedules) WorkerOption
Click to show internal directories.
Click to hide internal directories.