config

package
v0.0.0-...-974506c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	PostgresHost     string `default:"localhost" split_words:"true"`
	PostgresPort     int    `default:"5430" split_words:"true"`
	PostgresUser     string `default:"postgres" split_words:"true"`
	PostgresDatabase string `default:"postgres" split_words:"true"`
	PostgresPassword string `default:"secret" split_words:"true"`
	PostgresSSLMode  string `default:"disable" envconfig:"POSTGRES_SSL_MODE"`
	HTTPAddress      string `default:":8080" envconfig:"HTTP_ADDRESS"`
	TokenSecretKey   string `default:"secret" split_words:"true"`
	DeveloperMode    bool   `default:"false" split_words:"true"`
	BleveIndexPath   string `split_words:"true"`
	SendinblueKey    string `default:"secret" split_words:"true"`
	BaseURL          string `envconfig:"BASE_URL"`
	EmailSender      string `default:"noreply@example.org" split_words:"true"`
	EmailReplyTo     string `default:"noreply@example.org" split_words:"true"`
}

Configuration represent all configurations

var Config Configuration

Config represent all configurations

func (*Configuration) PostgresConfig

func (c *Configuration) PostgresConfig() string

PostgresConfig provides PostgreSQL connection string

func (*Configuration) SetBleveIndexPath

func (c *Configuration) SetBleveIndexPath(path string)

SetBleveIndexPath set Bleve index path

func (*Configuration) SetDatabaseName

func (c *Configuration) SetDatabaseName(dbname string)

SetDatabaseName set database

Jump to

Keyboard shortcuts

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