config

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConf

type AppConf struct {
	StorageURL string `envconfig:"storage_url"`
}

type Config

type Config struct {
	App     AppConf
	Auth    auth.Config
	Store   Store
	Rabbit  RabbitConf
	Storage StorageConf
	Auth1   struct {
		Addr string
	}
	Stool struct {
		Addr string
	}
	Mail    MailConf
	Pricing Pricing
}

func New

func New() (*Config, error)

type MailConf

type MailConf struct {
	ReplyTo      string `required:"false" default:""`
	From         string `required:"false" default:""`
	ServerToken  string `required:"false"`
	AccountToken string `required:"true"`
}

MailConf specifies all the parameters needed for dump mail sender

type PostgresConf

type PostgresConf struct {
	Host     string `default:"127.0.0.1"`
	Database string `default:"crm"`
	Port     string `default:"5432"`
	User     string `default:"postgres"`
	Password string `default:"password"`
}

type Pricing

type Pricing struct {
	CurrenciesAddr string `required:"true"`
}

type RabbitConf

type RabbitConf struct {
	Uri string `default:"amqp://guest:guest@localhost:5672"`
}

type RedisConf

type RedisConf struct {
	Host     string `default:"127.0.0.1:6379"`
	Password string `default:""`
	DB       int    `default:"0"`
}

type StorageConf

type StorageConf struct {
	Bucket string
}

type Store

type Store struct {
	Postgres PostgresConf
	Redis    RedisConf
	Rabbit   RabbitConf
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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