Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORS ¶
type CORS struct {
AllowedOrigins []string `` /* 363-byte string literal not displayed */
AllowedMethods []string `` /* 367-byte string literal not displayed */
AllowedHeaders []string `` /* 369-byte string literal not displayed */
AllowCredentials bool `` /* 315-byte string literal not displayed */
}
CORS defines the available cors configuration.
type Config ¶
type Config struct {
Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
Log *Log
Debug Debug `mask:"struct" yaml:"debug"`
Tracing *Tracing `yaml:"tracing"`
Service Service `yaml:"-"`
KeepAliveInterval time.Duration `` /* 198-byte string literal not displayed */
Events Events
HTTP HTTP `yaml:"http"`
TokenManager *TokenManager `yaml:"token_manager"`
Context context.Context `yaml:"-" json:"-"`
}
Config combines all available configuration parts.
type Debug ¶
type Debug struct {
Addr string `` /* 168-byte string literal not displayed */
Token string `yaml:"token" env:"SSE_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint." introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"SSE_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling." introductionVersion:"1.0.0"`
Zpages bool `` /* 150-byte string literal not displayed */
}
Debug defines the available debug configuration.
type Events ¶
type Events struct {
Endpoint string `` /* 241-byte string literal not displayed */
Cluster string `` /* 283-byte string literal not displayed */
TLSInsecure bool `` /* 143-byte string literal not displayed */
TLSRootCACertificate string `` /* 270-byte string literal not displayed */
EnableTLS bool `` /* 253-byte string literal not displayed */
AuthUsername string `` /* 258-byte string literal not displayed */
AuthPassword string `` /* 258-byte string literal not displayed */
}
Events combines the configuration options for the event bus.
type HTTP ¶
type HTTP struct {
Addr string `yaml:"addr" env:"SSE_HTTP_ADDR" desc:"The bind address of the HTTP service." introductionVersion:"1.0.0"`
Namespace string `yaml:"-"`
Root string `` /* 126-byte string literal not displayed */
CORS CORS `yaml:"cors"`
TLS shared.HTTPServiceTLS `yaml:"tls"`
}
HTTP defines the available http configuration.
type Log ¶
type Log struct {
Level string `` /* 182-byte string literal not displayed */
Pretty bool `mapstructure:"pretty" env:"OC_LOG_PRETTY;SSE_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
Color bool `mapstructure:"color" env:"OC_LOG_COLOR;SSE_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
File string `` /* 150-byte string literal not displayed */
}
Log defines the available log configuration.
type Service ¶
type Service struct {
Name string `yaml:"-"`
}
Service defines the available service configuration.
type TokenManager ¶
type TokenManager struct {
JWTSecret string `` /* 131-byte string literal not displayed */
}
TokenManager is the config for using the reva token manager
type Tracing ¶
type Tracing struct {
Enabled bool `yaml:"enabled" env:"OC_TRACING_ENABLED;SSE_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
Type string `` /* 206-byte string literal not displayed */
Endpoint string `` /* 132-byte string literal not displayed */
Collector string `` /* 252-byte string literal not displayed */
}
Tracing defines the available tracing configuration.
Click to show internal directories.
Click to hide internal directories.