Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
Service Service `yaml:"-"`
Tracing *Tracing `yaml:"tracing"`
Log *Log `yaml:"log"`
Debug Debug `yaml:"debug"`
GRPC GRPCConfig `yaml:"grpc"`
TokenManager *TokenManager `yaml:"token_manager"`
Reva *shared.Reva `yaml:"reva"`
ExternalAddr string `` /* 157-byte string literal not displayed */
Driver string `` /* 150-byte string literal not displayed */
Drivers Drivers `yaml:"drivers"`
Context context.Context `yaml:"-"`
}
type Debug ¶
type Debug struct {
Addr string `` /* 177-byte string literal not displayed */
Token string `yaml:"token" env:"APP_PROVIDER_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint" introductionVersion:"1.0.0"`
Pprof bool `yaml:"pprof" env:"APP_PROVIDER_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling" introductionVersion:"1.0.0"`
Zpages bool `` /* 160-byte string literal not displayed */
}
type Drivers ¶
type Drivers struct {
WOPI WOPIDriver `yaml:"wopi" desc:"Driver for the CS3org WOPI server"`
}
type GRPCConfig ¶
type GRPCConfig struct {
Addr string `yaml:"addr" env:"APP_PROVIDER_GRPC_ADDR" desc:"The bind address of the GRPC service." introductionVersion:"1.0.0"`
TLS *shared.GRPCServiceTLS `yaml:"tls"`
Namespace string `yaml:"-"`
Protocol string `` /* 144-byte string literal not displayed */
}
type Log ¶
type Log struct {
Level string `` /* 183-byte string literal not displayed */
Pretty bool `yaml:"pretty" env:"OC_LOG_PRETTY;APP_PROVIDER_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"`
Color bool `yaml:"color" env:"OC_LOG_COLOR;APP_PROVIDER_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"`
File string `` /* 151-byte string literal not displayed */
}
type TokenManager ¶
type TokenManager struct {
JWTSecret string `` /* 140-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;APP_PROVIDER_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
Type string `` /* 215-byte string literal not displayed */
Endpoint string `` /* 141-byte string literal not displayed */
Collector string `` /* 261-byte string literal not displayed */
}
Tracing defines the configuration options for tracing.
type WOPIDriver ¶
type WOPIDriver struct {
AppAPIKey string `yaml:"app_api_key" env:"APP_PROVIDER_WOPI_APP_API_KEY" desc:"API key for the wopi app." introductionVersion:"1.0.0"`
AppDesktopOnly bool `` /* 131-byte string literal not displayed */
AppIconURI string `` /* 133-byte string literal not displayed */
AppInternalURL string `` /* 142-byte string literal not displayed */
AppName string `yaml:"app_name" env:"APP_PROVIDER_WOPI_APP_NAME" desc:"Human readable app name." introductionVersion:"1.0.0"`
AppURL string `yaml:"app_url" env:"APP_PROVIDER_WOPI_APP_URL" desc:"URL for end users to access the app." introductionVersion:"1.0.0"`
AppDisableChat bool `` /* 166-byte string literal not displayed */
Insecure bool `` /* 226-byte string literal not displayed */
IopSecret string `` /* 152-byte string literal not displayed */
WopiURL string `` /* 155-byte string literal not displayed */
WopiFolderURLBaseURL string `` /* 199-byte string literal not displayed */
WopiFolderURLPathTemplate string `` /* 495-byte string literal not displayed */
}
Click to show internal directories.
Click to hide internal directories.