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
Click to show internal directories.
Click to hide internal directories.