Documentation ¶
Index ¶
- Variables
- type ClerkConfig
- type CorsConfig
- type DatabaseConfig
- type Feature
- func (f *Feature) AppendFeatureToTable(t table.Writer)
- func (f *Feature) CanStart() bool
- func (f *Feature) Configure(v reflect.Value)
- func (f *Feature) GetConfigByName(name string) string
- func (f *Feature) GetConfigByNameForPrint(name string) string
- func (f *Feature) IsConfigured() bool
- func (f *Feature) IsEnabled() bool
- func (f *Feature) IsReady() bool
- func (f *Feature) PrintFeature()
- func (f *Feature) ResolveFeatureEnabledState(v reflect.Value)
- func (f *Feature) ValidateReadiness()
- type GzipConfig
- type IFeature
- type KetoConfig
- type KratosConfig
- type RedisConfig
- type SFeatures
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Features = SFeatures{}
Functions ¶
This section is empty.
Types ¶
type ClerkConfig ¶
type CorsConfig ¶
type CorsConfig struct { AllowOrigins string `mapstructure:"CORS_ALLOW_ORIGINS"` AllowMethods string `mapstructure:"CORS_ALLOW_METHODS"` AllowHeaders string `mapstructure:"CORS_ALLOW_HEADERS"` MaxAge int `mapstructure:"CORS_MAX_AGE"` AllowCreds bool `mapstructure:"CORS_ALLOW_CREDENTIALS"` ExposeHeaders string `mapstructure:"CORS_EXPOSE_HEADERS"` }
type DatabaseConfig ¶
type DatabaseConfig struct { Host string `mapstructure:"DB_HOST"` Port string `mapstructure:"DB_PORT"` User string `mapstructure:"DB_USER"` Password string `mapstructure:"DB_PASSWORD"` Name string `mapstructure:"DB_NAME"` Timezone string `mapstructure:"DB_TIMEZONE"` Platform string `mapstructure:"DB_PLATFORM"` SslMode string `mapstructure:"DB_SSL_MODE"` }
type Feature ¶
type Feature struct { IFeature Name string Config interface{} // contains filtered or unexported fields }
func (*Feature) AppendFeatureToTable ¶
func (*Feature) GetConfigByName ¶
func (*Feature) GetConfigByNameForPrint ¶
func (*Feature) IsConfigured ¶
func (*Feature) PrintFeature ¶
func (f *Feature) PrintFeature()
func (*Feature) ResolveFeatureEnabledState ¶
func (*Feature) ValidateReadiness ¶
func (f *Feature) ValidateReadiness()
type GzipConfig ¶
type GzipConfig struct {
Level string `mapstructure:"GZIP_LEVEL"`
}
type KetoConfig ¶
type KratosConfig ¶
type RedisConfig ¶
type SFeatures ¶
type SFeatures struct {
// contains filtered or unexported fields
}
func (*SFeatures) GetFeatureByName ¶
func (*SFeatures) GetFeatures ¶
type ServiceConfig ¶
type ServiceConfig struct { Host string `mapstructure:"HOST"` PrimaryApiPort string `mapstructure:"PRIMARY_API_PORT"` ProtectedApiPort string `mapstructure:"PROTECTED_API_PORT"` PublicApiPort string `mapstructure:"PUBLIC_API_PORT"` HiddenApiPort string `mapstructure:"HIDDEN_API_PORT"` LogLevel string `mapstructure:"LOG_LEVEL"` RequestTimeoutDuration string `mapstructure:"REQUEST_TIMEOUT_DURATION"` WatcherSleepInterval string `mapstructure:"WATCHER_SLEEP_INTERVAL"` DisableFeatures []string `mapstructure:"DISABLE_FEATURES"` }
Click to show internal directories.
Click to hide internal directories.