tq

package
v0.0.0-...-c537dde Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, queueName string, tasks ...*Task) error

Add a task to the specified task queue.

Types

type QueueData

type QueueData = taskqueue.QueueData

QueueData is support data for task queues in tests.

type Task

type Task = taskqueue.Task

Task is a taskqueue task to be executed.

func NewPOSTTask

func NewPOSTTask(path string, params url.Values) *Task

NewPOSTTask creates a task that will post to a path with a given payload in its URLs.

type Testable

type Testable = taskqueue.Testable

Testable is a testable interface for the taskqueue library.

func GetTestable

func GetTestable(ctx context.Context) Testable

GetTestable gets a testable version of the current task queue.

Jump to

Keyboard shortcuts

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