Help us shape the future of Go! Take the 2026 Go Developer Survey

subscriberconfig

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package subscriberconfig owns subscriber defaults and validation shared by the runtime registry and persistence layer.

Index

Constants

View Source
const (
	MaximumDeliveryLease = 12 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	MaxAttempts        int
	VisibilityDuration string
	DequeueBatchSize   int
	RetryPolicy        RetryPolicy
}

func Normalize

func Normalize(options Options) Options

type Parsed

type Parsed struct {
	MaxAttempts        int
	VisibilityDuration time.Duration
	DequeueBatchSize   int
	RetryInitialDelay  time.Duration
	RetryMaxDelay      time.Duration
	RetryMultiplier    float64
	RetryJitter        float64
}

func Parse

func Parse(options Options) (Parsed, error)

type RetryPolicy

type RetryPolicy struct {
	InitialDelay  string
	MaxDelay      string
	Multiplier    float64
	Jitter        float64
	DisableJitter bool
}

Jump to

Keyboard shortcuts

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