nexssflow

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package nexssflow exposes the in-process task queue to Nexss Flow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bundle

func Bundle(_ map[string]string) compiler.Bundle

Bundle returns the Flow bundle for task queue producers and workers.

func Library

func Library() action.Library

Library creates a Flow action library backed by a fresh in-memory queue.

func LibraryWithConfig

func LibraryWithConfig(cfg corequeue.Config) action.Library

LibraryWithConfig creates a Flow library with the supplied queue settings.

func LibraryWithQueue

func LibraryWithQueue(q *corequeue.Queue) action.Library

LibraryWithQueue uses the provided queue so producers and listeners share it.

Types

type EnqueueRequest

type EnqueueRequest struct {
	Type     string `json:"type"`
	Payload  any    `json:"payload"`
	Priority string `json:"priority,omitempty"`
}

EnqueueRequest is the input accepted by taskqueue.enqueue.

type TaskBinding

type TaskBinding struct {
	Type string
}

TaskBinding marks an action as a handler for a named queue task type.

func Task

func Task(taskType string) TaskBinding

Task binds an action to a task type.

Jump to

Keyboard shortcuts

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