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
)
Click to show internal directories.
Click to hide internal directories.