Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronConfig ¶
type CronConfig struct {
TimeZone string `mapstructure:"timeZone" validate:"required"`
}
type GoogleConfig ¶
type GoogleConfig struct {
ApplicationCredentials string `mapstructure:"applicationCredentials"`
Storage StorageConfig `mapstructure:"storage"`
}
type KronusConfig ¶
type KronusConfig struct {
PrivateKeyPem string `mapstructure:"privateKeyPem" validate:"required"`
Cron CronConfig `mapstructure:"cron" validate:"required"`
Listener ListenerConfig `mapstructure:"listener" validate:"required"`
PublicUrl string `mapstructure:"publicUrl" validate:"required"`
}
type ListenerConfig ¶
type ListenerConfig struct {
Port int `mapstructure:"port" validate:"required"`
}
type ServerConfig ¶
type ServerConfig struct {
Sqlite SqliteConfig `mapstructure:"sqlite" validate:"required"`
Kronus KronusConfig `mapstructure:"kronus" validate:"required"`
Google GoogleConfig `mapstructure:"google"`
Twilio TwilioConfig `mapstructure:"twilio"`
}
type SqliteConfig ¶
type SqliteConfig struct {
PassPhrase string `mapstructure:"passPhrase" validate:"required"`
}
type StorageConfig ¶
type StorageConfig struct {
Bucket string `mapstructure:"bucket" validate:"required_with=EnableSqliteBackupAndSync"`
Prefix string `mapstructure:"prefix" validate:"required_with=EnableSqliteBackupAndSync"`
SqliteBackupSchedule string `mapstructure:"sqliteBackupSchedule" validate:"required_with=EnableSqliteBackupAndSync"`
EnableSqliteBackupAndSync interface{} `mapstructure:"enableSqliteBackupAndSync" validate:"omitempty,bool"`
}
type TwilioConfig ¶
Click to show internal directories.
Click to hide internal directories.