Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogLevel string `default:"debug"` DefaultDomain string `default:"oakmail.io"` API APIConfig Filer FilerConfig Mailer MailerConfig Worker WorkerConfig Database *Database `default:"sqlite"` Postgres PostgresConfig SQLite SQLiteConfig Filesystem *Filesystem `default:"flat"` Flat FlatConfig Seaweed SeaweedConfig Queue *Queue `default:"memory"` NSQ NSQConfig }
Config is the root config structure
type FilerConfig ¶
FilerConfig contains configuration data for the Filer module
type Filesystem ¶
type Filesystem string
Filesystem is a filesystem type enum
const ( Flat Filesystem = "flat" Seaweed Filesystem = "seaweed" )
Available filesystems
type FlatConfig ¶
type FlatConfig struct {
Path string `default:"./_runtime/files"`
}
FlatConfig contains all configuration data for the flat filesystem
type MailerConfig ¶
MailerConfig contains configuration data for the mailer module
type PostgresConfig ¶
type PostgresConfig struct {
ConnectionString string
}
PostgresConfig contains all configuration data for a PostgreSQL connection
type SQLiteConfig ¶
type SQLiteConfig struct {
ConnectionString string `default:"./_runtime/database.db"`
}
SQLiteConfig contains all configuration data for SQLite adapter setup
type SeaweedConfig ¶
SeaweedConfig contains all configuration data for the SeaweedFS client
type WorkerConfig ¶
type WorkerConfig struct {
Enabled bool `default:"false"`
}
WorkerConfig contains configuration data for the worker module
Click to show internal directories.
Click to hide internal directories.