jobs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPJob

type HTTPJob struct {
	// The identifier of the job.
	JobId string
	// The HTTP request method.
	RequestMethod string
	// The HTTP request URL.
	RequestURL string
	// The HTTP request body.
	RequestBody []byte
}

Represents an HTTP request job from a SaladCloud job queue.

type HTTPJobExecutor

type HTTPJobExecutor = func(ctx context.Context, job HTTPJob) ([]byte, error)

Represents a function that executes an HTTP request job from a SaladCloud job queue. The returned value is the HTTP response body.

Jump to

Keyboard shortcuts

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