api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: AGPL-3.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(store *db.Store, options api.GinServerOptions, router *gin.Engine, onRetry RetryTrigger)

Types

type OutboxHandler

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

func NewOutboxHandler

func NewOutboxHandler(store *db.Store, onRetry RetryTrigger) *OutboxHandler

func (*OutboxHandler) DeleteOutboxMessage

func (h *OutboxHandler) DeleteOutboxMessage(c *gin.Context, id types.UUID)

DeleteOutboxMessage implements api.ServerInterface.

func (*OutboxHandler) ListOutboxMessages

func (h *OutboxHandler) ListOutboxMessages(c *gin.Context, params api.ListOutboxMessagesParams)

ListOutboxMessages implements api.ServerInterface. SUPER_ADMIN sees all tenants; ADMIN sees only their own.

func (*OutboxHandler) RetryOutboxMessage

func (h *OutboxHandler) RetryOutboxMessage(c *gin.Context, id types.UUID)

RetryOutboxMessage implements api.ServerInterface.

type RetryTrigger

type RetryTrigger func(ctx context.Context)

RetryTrigger is an optional callback fired after a message has been reset for retry. The dispatcher (in the host app) supplies this so a manual "retry now" actually delivers immediately instead of waiting for the next poll tick. Implementations must be safe to invoke from a goroutine.

Jump to

Keyboard shortcuts

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