Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAllEnv ¶
Types ¶
type Config ¶
type Config struct {
GormDB *gorm.DB
Repository repository.Repository
InstanceName string
// contains filtered or unexported fields
}
func (*Config) GetEncryptionKey ¶
func (*Config) SetEncryptionKey ¶
type ConfigFile ¶
type ConfigFile struct {
Kind string `mapstructure:"kind" json:"kind,omitempty" default:"sqlite"`
EncryptionKey string `mapstructure:"encryptionKey" json:"encryptionKey,omitempty"`
AutoMigrate bool `mapstructure:"autoMigrate" json:"autoMigrate,omitempty" default:"true"`
SQLite ConfigFileSQLite `mapstructure:"sqlite" json:"sqlite,omitempty"`
Postgres ConfigFilePostgres `mapstructure:"postgres" json:"postgres,omitempty"`
}
type ConfigFilePostgres ¶
type ConfigFilePostgres struct {
PostgresHost string `mapstructure:"host" json:"host,omitempty" default:"postgres"`
PostgresPort int `mapstructure:"port" json:"port,omitempty" default:"5432"`
PostgresUsername string `mapstructure:"username" json:"username,omitempty" default:"hatchet"`
PostgresPassword string `mapstructure:"password" json:"password,omitempty" default:"hatchet"`
PostgresDbName string `mapstructure:"dbName" json:"dbName,omitempty" default:"hatchet"`
PostgresForceSSL bool `mapstructure:"forceSSL" json:"forceSSL,omitempty" default:"false"`
}
type ConfigFileSQLite ¶
type ConfigFileSQLite struct {
SQLLitePath string `mapstructure:"path" json:"path,omitempty" default:"/hatchet/hatchet.db"`
}
Click to show internal directories.
Click to hide internal directories.