Documentation
¶
Index ¶
- type ApiConfig
- type AuthConfig
- type CORSConfig
- type CacheConfig
- type CdnProxyConfig
- type CertConfig
- type Config
- type DiagConfig
- type DynamoDbConfig
- type GlobalOfflineConfig
- type GrpcConfig
- type HttpConfig
- type HttpProxyConfig
- type KeepAliveConfig
- type LocalConfig
- type LogConfig
- type MetricsConfig
- type MongoDbConfig
- type OfflineConfig
- type OriginRegexConfig
- type RedisConfig
- type SDKConfig
- type SseConfig
- type StatusConfig
- type TlsConfig
- type WebhookConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type CORSConfig ¶ added in v0.2.0
type CORSConfig struct {
Enabled bool
AllowedOrigins []string `yaml:"allowed_origins"`
AllowedOriginsRegex OriginRegexConfig `yaml:"allowed_origins_regex"`
}
type CacheConfig ¶
type CacheConfig struct {
Redis RedisConfig
MongoDb MongoDbConfig `yaml:"mongodb"`
DynamoDb DynamoDbConfig `yaml:"dynamodb"`
}
func (*CacheConfig) IsSet ¶ added in v0.5.0
func (c *CacheConfig) IsSet() bool
type CdnProxyConfig ¶
type CdnProxyConfig struct {
Headers map[string]string `yaml:"headers"`
Enabled bool `yaml:"enabled"`
CORS CORSConfig
}
type CertConfig ¶
type Config ¶
type Config struct {
Log LogConfig
SDKs map[string]*SDKConfig
Grpc GrpcConfig
Tls TlsConfig
Diag DiagConfig
Http HttpConfig
Cache CacheConfig
HttpProxy HttpProxyConfig `yaml:"http_proxy"`
GlobalOfflineConfig GlobalOfflineConfig `yaml:"offline"`
DefaultAttrs model.UserAttrs `yaml:"default_user_attributes"`
}
type DiagConfig ¶ added in v0.4.0
type DiagConfig struct {
Port int `yaml:"port"`
Enabled bool `yaml:"enabled"`
Metrics MetricsConfig `yaml:"metrics"`
Status StatusConfig `yaml:"status"`
}
type DynamoDbConfig ¶ added in v0.5.0
type GlobalOfflineConfig ¶ added in v0.1.5
type GrpcConfig ¶
type HttpConfig ¶
type HttpConfig struct {
Enabled bool
Port int `yaml:"port"`
CdnProxy CdnProxyConfig `yaml:"cdn_proxy"`
Log LogConfig
Webhook WebhookConfig
Sse SseConfig
Api ApiConfig
Status StatusConfig
}
type HttpProxyConfig ¶
type HttpProxyConfig struct {
Url string `yaml:"url"`
}
type KeepAliveConfig ¶ added in v0.4.2
type KeepAliveConfig struct {
MaxConnectionIdle int `yaml:"max_connection_idle"`
MaxConnectionAge int `yaml:"max_connection_age"`
MaxConnectionAgeGrace int `yaml:"max_connection_age_grace"`
Time int `yaml:"time"`
Timeout int `yaml:"timeout"`
}
func (*KeepAliveConfig) ToParams ¶ added in v0.4.2
func (k *KeepAliveConfig) ToParams() (keepalive.ServerParameters, bool)
type LocalConfig ¶
type MetricsConfig ¶
type MetricsConfig struct {
Enabled bool `yaml:"enabled"`
}
type MongoDbConfig ¶ added in v0.5.0
type OfflineConfig ¶
type OfflineConfig struct {
Enabled bool `yaml:"enabled"`
UseCache bool `yaml:"use_cache"`
CachePollInterval int `yaml:"cache_poll_interval"`
Log LogConfig
Local LocalConfig
}
type OriginRegexConfig ¶ added in v0.2.1
type RedisConfig ¶
type SDKConfig ¶
type SDKConfig struct {
Key string `yaml:"key"`
BaseUrl string `yaml:"base_url"`
PollInterval int `yaml:"poll_interval"`
DataGovernance string `yaml:"data_governance"`
WebhookSignatureValidFor int `yaml:"webhook_signature_valid_for"`
WebhookSigningKey string `yaml:"webhook_signing_key"`
DefaultAttrs model.UserAttrs `yaml:"default_user_attributes"`
Offline OfflineConfig
Log LogConfig
}
type StatusConfig ¶ added in v0.4.0
type StatusConfig struct {
Enabled bool `yaml:"enabled"`
}
type TlsConfig ¶
type TlsConfig struct {
Enabled bool `yaml:"enabled"`
MinVersion float64 `yaml:"min_version"`
ServerName string `yaml:"server_name"`
Certificates []CertConfig
}
func (*TlsConfig) GetVersion ¶
type WebhookConfig ¶
type WebhookConfig struct {
AuthHeaders map[string]string `yaml:"auth_headers"`
Enabled bool `yaml:"enabled"`
Auth AuthConfig
}
Click to show internal directories.
Click to hide internal directories.