config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CallbacksPort string `envconfig:"CALLBACKS_PORT" default:"80"`
	MetricsPort   string `envconfig:"METRICS_PORT" default:"8087"`
	MicroSelector string `envconfig:"MICRO_SELECTOR" default:""`

	HelloSignApiUrlCreateEmbedded             string `envconfig:"HELLO_SIGN_API_URL_CREATE_EMBEDDED" default:"https://api.hellosign.com/v3/signature_request/create_embedded"`
	HelloSignApiUrlEmbeddedSign               string `envconfig:"HELLO_SIGN_API_URL_EMBEDDED_SIGN" default:"https://api.hellosign.com/v3/embedded/sign_url/%s"`
	HelloSignApiUrlCreateEmbeddedWithTemplate string `` /* 147-byte string literal not displayed */
	HelloSignApiUrlWebsite                    string `envconfig:"HELLO_SIGN_API_URL_WEBSITE" default:"https://api.hellosign.com/v3/signature_request/send"`

	HelloSignApiKey         string `envconfig:"HELLO_SIGN_API_KEY" required:"true"`
	HelloSignDefaultSubject string `envconfig:"HELLO_SIGN_DEFAULT_SUBJECT" default:"The agreement signing we talked about"`
	HelloSignDefaultTitle   string `envconfig:"HELLO_SIGN_DEFAULT_TITLE" default:"Agreement with company"`
	HelloSignDefaultMessage string `` /* 144-byte string literal not displayed */
	HelloSignTestMode       bool   `envconfig:"HELLO_SIGN_TEST_MODE" default:"true"`
	HelloSignLogin          string `envconfig:"HELLO_SIGN_LOGIN" required:"true"`
	HelloSignPassword       string `envconfig:"HELLO_SIGN_PASSWORD" required:"true"`

	CentrifugoUrl             string `envconfig:"CENTRIFUGO_URL" required:"true"`
	CentrifugoApiSecret       string `envconfig:"CENTRIFUGO_API_SECRET" required:"true"`
	CentrifugoAdminChannel    string `envconfig:"CENTRIFUGO_ADMIN_CHANNEL" default:"paysuper:admin"`
	CentrifugoMerchantChannel string `envconfig:"CENTRIFUGO_MERCHANT_CHANNEL" default:"paysuper:merchant#%s"`

	AwsAccessKeyIdAgreement     string `envconfig:"AWS_ACCESS_KEY_ID_AGREEMENT" required:"true"`
	AwsSecretAccessKeyAgreement string `envconfig:"AWS_SECRET_ACCESS_KEY_AGREEMENT" required:"true"`
	AwsRegionAgreement          string `envconfig:"AWS_REGION_AGREEMENT" default:"eu-west-1"`
	AwsBucketAgreement          string `envconfig:"AWS_BUCKET_AGREEMENT" required:"true"`

	AwsAccessKeyIdReport     string `envconfig:"AWS_ACCESS_KEY_ID_REPORT" required:"true"`
	AwsSecretAccessKeyReport string `envconfig:"AWS_SECRET_ACCESS_KEY_REPORT" required:"true"`
	AwsRegionReport          string `envconfig:"AWS_REGION_REPORT" default:"eu-west-1"`
	AwsBucketReport          string `envconfig:"AWS_BUCKET_REPORT" required:"true"`
	BillingVersion           string `envconfig:"BILLING_VERSION" required:"false"`
	BillingVersionFallback   string `envconfig:"BILLING_VERSION_FALLBACK" required:"false" default:"latest"`
}

func NewConfig

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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