config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwaggerClient

func GetSwaggerClient(apiURL string) (*apiclient.WorkflowManager, error)

Types

type Specification

type Specification struct {
	Port           string `default:"8080" envconfig:"PORT"`
	Polling        int    `default:"43200" envconfig:"POLL_INTERVAL_SEC"` // 43200 seconds = 12 hours
	VersionsAPIURL string `envconfig:"VERSIONS_API_URL" default:"https://versions-staging.drycc.com"`
	DoctorAPIURL   string `envconfig:"DOCTOR_API_URL" default:"https://doctor-staging.drycc.com"`
	APIVersion     string `envconfig:"API_VERSION" default:"v3"`
	CheckVersions  bool   `default:"true" envconfig:"CHECK_VERSIONS"`
	DryccNamespace string `default:"drycc" envconfig:"DRYCC_NAMESPACE"`
}

Specification config struct

var Spec Specification

Spec is an exportable variable that contains workflow manager config data

Jump to

Keyboard shortcuts

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