config

package
v2.0.46 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfiguration

func ParseConfiguration()

func ValidateConfiguration added in v2.0.37

func ValidateConfiguration()

Types

type Specification

type Specification struct {
	PostmanBaseUrl                     string `json:"postmanBaseUrl" split_words:"true" required:"false" default:"https://api.getpostman.com"`
	PostmanApiKey                      string `json:"postmanApiKey" split_words:"true" required:"true"`
	PostmanCollectionDiscoveryInterval string `json:"postmanCollectionDiscoveryInterval" split_words:"true" required:"false" default:"30m"`
	// PostmanCollectionDiscoveryRetryInterval is the first delay before a failed collection discovery is retried.
	PostmanCollectionDiscoveryRetryInterval time.Duration `json:"postmanCollectionDiscoveryRetryInterval" split_words:"true" required:"false" default:"5m"`
	// PostmanApiTimeout bounds a single attempt against the Postman API. It has to stay well
	// below the request budget the agent advertises via the Request-Timeout header (28s with
	// agent defaults), because overrunning that budget replaces whatever error we would have
	// reported with an opaque "503 Service Unavailable ... Timeout".
	PostmanApiTimeout time.Duration `json:"postmanApiTimeout" split_words:"true" required:"false" default:"8s"`
	// PostmanApiMaxAttempts is the total number of attempts (first try plus retries) made per
	// Postman API call before giving up. Attempts stop early once the shared budget is spent.
	PostmanApiMaxAttempts int `json:"postmanApiMaxAttempts" split_words:"true" required:"false" default:"3"`
}
var (
	Config Specification
)

Jump to

Keyboard shortcuts

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