package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

Await returns a new future.
Interceptors chains calls to interceptors as a single interceptor.
NewBatch creates a new batch processor.
NewInterval returns a new worker that runs an action on an interval.
NewLatch creates a new latch.
NewQueue returns a new parallel queue.
NewWorker creates a new worker.
OptBatchErrors sets the batch worker error return channel.
OptBatchParallelism sets the batch worker parallelism, or the number of workers to create.
OptBatchSkipRecoverPanics sets the batch worker to throw (or to recover) panics.
OptIntervalContext sets the interval worker context.
OptIntervalDelay sets the interval worker start delay.
OptIntervalErrors sets the interval worker start error channel.
OptIntervalStopOnError sets if the interval worker should stop on action error.
OptQueueContext sets the queue worker context.
OptQueueErrors sets the queue worker start error channel.
OptQueueMaxWork sets the queue worker max work.
OptQueueParallelism sets the queue worker parallelism.
Recover runs an action and passes any errors to the given errors channel.
RecoverGroup runs a recovery against a specific wait group with an error collector.

# Constants

Constants.
Constants.
Constants.
Latch states.
Latch states.
Latch states.
Latch states.
Latch states.
Latch states.
Latch states.
Latch states.

# Variables

# Structs

Batch is a batch of work executed by a fixed count of workers.
Future is a deferred action.
Interval is a background worker that performs an action on an interval.
Latch is a helper to coordinate goroutine lifecycles, specifically waiting for goroutines to start and end.
NoopActioner is an actioner type that does nothing.
Queue is a queue with multiple workers.
SignalGroup is a wait group but it awaits on a signal.
Worker is a worker that is pushed work over a channel.

# Interfaces

Actioner is a type that can be used as a tracked action.
Checker is a type that can be checked for SLA status.
Interceptor returns an actioner for a given actioner.

# Type aliases

ActionerFunc is a function that implements action.
BatchOption is an option for the batch worker.
CheckerFunc implements Checker.
ContextAction is an action that is given a context and returns an error.
InterceptorFunc is a function that implements action.
IntervalOption is an option for the interval worker.
QueueOption is an option for the queue worker.
WorkAction is an action handler for a queue.
WorkerFinalizer is an action handler for a queue.