Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
*shared.Commons `yaml:"-"`
Service Service `yaml:"-"`
Tracing *Tracing `yaml:"tracing"`
Log *Log `yaml:"log"`
Debug Debug `yaml:"debug"`
GRPC GRPC `yaml:"grpc"`
HTTP HTTP `yaml:"http"`
Thumbnail Thumbnail `yaml:"thumbnail"`
Context context.Context `yaml:"-"`
}
Config combines all available configuration parts.
type Debug ¶
type Debug struct {
Addr string `yaml:"addr" env:"THUMBNAILS_DEBUG_ADDR"`
Token string `yaml:"token" env:"THUMBNAILS_DEBUG_TOKEN"`
Pprof bool `yaml:"pprof" env:"THUMBNAILS_DEBUG_PPROF"`
Zpages bool `yaml:"zpages" env:"THUMBNAILS_DEBUG_ZPAGES"`
}
Debug defines the available debug configuration.
type FileSystemSource ¶
type FileSystemSource struct {
BasePath string `yaml:"base_path"`
}
FileSystemSource defines the available filesystem source configuration.
type FileSystemStorage ¶
type FileSystemStorage struct {
RootDirectory string `yaml:"root_directory" env:"THUMBNAILS_FILESYSTEMSTORAGE_ROOT"`
}
FileSystemStorage defines the available filesystem storage configuration.
type GRPC ¶ added in v1.17.0
type GRPC struct {
Addr string `yaml:"addr" env:"THUMBNAILS_GRPC_ADDR"`
Namespace string `yaml:"-"`
}
GRPC defines the available grpc configuration.
type HTTP ¶ added in v1.19.0
type HTTP struct {
Addr string `yaml:"addr" env:"THUMBNAILS_HTTP_ADDR"`
Root string `yaml:"root" env:"THUMBNAILS_HTTP_ROOT"`
Namespace string `yaml:"-"`
}
HTTP defines the available http configuration.
type Log ¶
type Log struct {
Level string `mapstructure:"level" env:"OCIS_LOG_LEVEL;THUMBNAILS_LOG_LEVEL"`
Pretty bool `mapstructure:"pretty" env:"OCIS_LOG_PRETTY;THUMBNAILS_LOG_PRETTY"`
Color bool `mapstructure:"color" env:"OCIS_LOG_COLOR;THUMBNAILS_LOG_COLOR"`
File string `mapstructure:"file" env:"OCIS_LOG_FILE;THUMBNAILS_LOG_FILE"`
}
Log defines the available log configuration.
type Service ¶ added in v1.17.0
type Service struct {
Name string `yaml:"-"`
}
Service defines the available service configuration.
type Thumbnail ¶
type Thumbnail struct {
Resolutions []string `yaml:"resolutions"`
FileSystemStorage FileSystemStorage `yaml:"filesystem_storage"`
WebdavAllowInsecure bool `yaml:"webdav_allow_insecure" env:"OCIS_INSECURE;THUMBNAILS_WEBDAVSOURCE_INSECURE"`
CS3AllowInsecure bool `yaml:"cs3_allow_insecure" env:"OCIS_INSECURE;THUMBNAILS_CS3SOURCE_INSECURE"`
RevaGateway string `yaml:"reva_gateway" env:"REVA_GATEWAY"` //TODO: use REVA config
FontMapFile string `yaml:"font_map_file" env:"THUMBNAILS_TXT_FONTMAP_FILE"`
TransferTokenSecret string `yaml:"transfer_token" env:"THUMBNAILS_TRANSFER_TOKEN"`
DataEndpoint string `yaml:"data_endpoint" env:"THUMBNAILS_DATA_ENDPOINT"`
}
Thumbnail defines the available thumbnail related configuration.
type Tracing ¶
type Tracing struct {
Enabled bool `yaml:"enabled" env:"OCIS_TRACING_ENABLED;THUMBNAILS_TRACING_ENABLED"`
Type string `yaml:"type" env:"OCIS_TRACING_TYPE;THUMBNAILS_TRACING_TYPE"`
Endpoint string `yaml:"endpoint" env:"OCIS_TRACING_ENDPOINT;THUMBNAILS_TRACING_ENDPOINT"`
Collector string `yaml:"collector" env:"OCIS_TRACING_COLLECTOR;THUMBNAILS_TRACING_COLLECTOR"`
}
Tracing defines the available tracing configuration.
Click to show internal directories.
Click to hide internal directories.