Back to godoc.org

Package finalizer

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

func InitServer

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

InitServer initializes a finalizer server.

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier