Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitServer

func InitServer(srv *server.Server, opts Options)

InitServer initializes a finalizer server.

Types

type Options

type Options struct {
	// How often to query for tasks.
	TaskQueryInterval time.Duration

	// How long to lease a task for.
	TaskLeaseDuration time.Duration

	// Number of tasks to process concurrently.
	TaskWorkers int
}

Options is finalizer server configuration.

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns Options with default values.

Source Files