mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-07 04:41:31 -05:00
30 lines
791 B
Go
30 lines
791 B
Go
package config
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/opencloud-eu/opencloud/pkg/shared"
|
|
)
|
|
|
|
// Config combines all available configuration parts.
|
|
type Config struct {
|
|
Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
|
|
|
|
Service Service `yaml:"-"`
|
|
App App `yaml:"app"`
|
|
Store Store `yaml:"store"`
|
|
|
|
TokenManager *TokenManager `yaml:"token_manager"`
|
|
|
|
GRPC GRPC `yaml:"grpc"`
|
|
HTTP HTTP `yaml:"http"`
|
|
|
|
Wopi Wopi `yaml:"wopi"`
|
|
CS3Api CS3Api `yaml:"cs3api"`
|
|
|
|
LogLevel string `yaml:"loglevel" env:"OC_LOG_LEVEL;COLLABORATION_LOG_LEVEL" desc:"The log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'." introductionVersion:"1.0.0"`
|
|
Debug Debug `yaml:"debug"`
|
|
|
|
Context context.Context `yaml:"-"`
|
|
}
|