Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindAllEnv ¶
Types ¶
type Config ¶
type Config struct { Disconnect func() error Pool *pgxpool.Pool APIRepository repository.APIRepository EngineRepository repository.EngineRepository EntitlementRepository repository.EntitlementsRepository 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"` MaxConns int `mapstructure:"maxConns" json:"maxConns,omitempty" default:"5"` Seed SeedConfigFile `mapstructure:"seed" json:"seed,omitempty"` Logger shared.LoggerConfigFile `mapstructure:"logger" json:"logger,omitempty"` LogQueries bool `mapstructure:"logQueries" json:"logQueries,omitempty" default:"false"` CacheDuration time.Duration `mapstructure:"cacheDuration" json:"cacheDuration,omitempty" default:"60s"` }
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.