Create onlyoffice extension

This commit is contained in:
Lukas Hirt
2020-11-26 11:05:10 +01:00
parent 63d1fca0ce
commit 68b74d11da
65 changed files with 11363 additions and 14 deletions
+52
View File
@@ -0,0 +1,52 @@
package config
// Log defines the available logging configuration.
type Log struct {
Level string
Pretty bool
Color bool
}
// Debug defines the available debug configuration.
type Debug struct {
Addr string
Token string
Pprof bool
Zpages bool
}
// HTTP defines the available http configuration.
type HTTP struct {
Addr string
Namespace string
Root string
}
// Tracing defines the available tracing configuration.
type Tracing struct {
Enabled bool
Type string
Endpoint string
Collector string
Service string
}
// Config combines all available configuration parts.
type Config struct {
File string
Log Log
Debug Debug
HTTP HTTP
Tracing Tracing
Asset Asset
}
// Asset defines the available asset configuration.
type Asset struct {
Path string
}
// New initializes a new configuration with or without defaults.
func New() *Config {
return &Config{}
}