config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 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 Centrifugo added in v1.1.0

type Centrifugo struct {
	ApiSecret string `required:"true"`
	URL       string `default:"http://127.0.0.1:8000"`
}

type Config

type Config struct {
	BrokerAddress string `envconfig:"BROKER_ADDRESS" default:"amqp://127.0.0.1:5672"`
	MetricsPort   string `envconfig:"METRICS_PORT" required:"false" default:"8087"`
	RedisHost     string `envconfig:"REDIS_HOST" default:"127.0.0.1:6379"`
	RedisPassword string `envconfig:"REDIS_PASSWORD" default:""`

	CentrifugoPaymentForm  *Centrifugo `envconfig:"CENTRIFUGO_PAYMENT_FORM"`
	CentrifugoDashboard    *Centrifugo `envconfig:"CENTRIFUGO_DASHBOARD"`
	CentrifugoUserChannel  string      `envconfig:"CENTRIFUGO_USER_CHANNEL" default:"paysuper:order#%s"`
	CentrifugoAdminChannel string      `envconfig:"CENTRIFUGO_ADMIN_CHANNEL" default:"paysuper:admin"`
}

func NewConfig

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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