config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Validator = func() *validator.Validate {
		v := validator.New()
		worker.RegisterValidator(v)
		return v
	}()
)

Functions

This section is empty.

Types

type WorkerConfig

type WorkerConfig struct {
	QueueName string `json:"queueName" yaml:"queueName" default:"-" validate:"required,min=1,max=256,excludesall=:"`

	worker.WorkerSpec `json:",inline" yaml:",inline" mapstructure:",squash"`

	NumWorkerSalvageOnStartup int `json:"numWorkerSalvageOnStartup" yaml:"numWorkerSalvageOnStartup" default:"-1" validate:"required"`
}

func (WorkerConfig) Validate

func (wc WorkerConfig) Validate() *util.ValidationError

Jump to

Keyboard shortcuts

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