Help us shape the future of Go! Take the 2026 Go Developer Survey

dispatchadapter

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dispatchadapter adapts the dispatch extension's engine to the authsome bridge.Dispatcher interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter implements bridge.Dispatcher by delegating to the dispatch extension's engine.

func New

func New(eng *dispatchengine.Engine) *Adapter

New creates a new dispatch adapter.

func (*Adapter) Enqueue

func (a *Adapter) Enqueue(ctx context.Context, jobName string, payload []byte) error

Enqueue submits a background job for immediate processing.

func (*Adapter) Schedule

func (a *Adapter) Schedule(ctx context.Context, jobName string, payload []byte, runAt time.Time) error

Schedule submits a background job for processing at a future time.

Jump to

Keyboard shortcuts

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