Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAllEnv ¶
Types ¶
type Config ¶
type Config struct { Disconnect func() error Repository repository.Repository Seed SeedConfigFile }
type ConfigFile ¶
type ConfigFile struct { PostgresHost string `mapstructure:"host" json:"host,omitempty" default:"127.0.0.1"` PostgresPort int `mapstructure:"port" json:"port,omitempty" default:"5431"` 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"` PostgresSSLMode string `mapstructure:"sslMode" json:"sslMode,omitempty" default:"disable"` Seed SeedConfigFile `mapstructure:"seed" json:"seed,omitempty"` Logger shared.LoggerConfigFile `mapstructure:"logger" json:"logger,omitempty"` }
type SeedConfigFile ¶
type SeedConfigFile struct { AdminEmail string `mapstructure:"adminEmail" json:"adminEmail,omitempty" default:"admin@example.com"` AdminPassword string `mapstructure:"adminPassword" json:"adminPassword,omitempty" default:"Admin123!!"` AdminName string `mapstructure:"adminName" json:"adminName,omitempty" default:"Admin"` DefaultTenantName string `mapstructure:"defaultTenantName" json:"defaultTenantName,omitempty" default:"Default"` DefaultTenantSlug string `mapstructure:"defaultTenantSlug" json:"defaultTenantSlug,omitempty" default:"default"` DefaultTenantID string `mapstructure:"defaultTenantId" json:"defaultTenantId,omitempty" default:"707d0855-80ab-4e1f-a156-f1c4546cbf52"` IsDevelopment bool `mapstructure:"isDevelopment" json:"isDevelopment,omitempty" default:"false"` }
Click to show internal directories.
Click to hide internal directories.