faktory

package
v0.0.0-...-41cd4ca Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JobDeliverActivity = "DeliverActivity"
	JobInboxActivity   = "InboxActivity"

	QueueDefault  = "default"  // medium
	QueueDelivery = "delivery" // low
	QueuePriority = "priority" // high
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

func New

func New(l logic.Logic) (*Runner, error)

New created a new logic module.

func (*Runner) EnqueueDeliverActivity

func (r *Runner) EnqueueDeliverActivity(_ context.Context, instanceID int64, activity ap.Activity) error

func (*Runner) EnqueueInboxActivity

func (r *Runner) EnqueueInboxActivity(_ context.Context, instanceID int64, actorIRI string, activity ap.Activity) error

func (*Runner) Middleware

func (r *Runner) Middleware(ctx context.Context, job *faktory.Job, next func(ctx context.Context) error) error

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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