Documentation ¶
Index ¶
- func BuildNewIntegrationCredentialsConfig(path string) func() (*oauth2.Config, error)
- func BuildNewOnlyofficeConfig(path string) func() (*OnlyofficeConfig, error)
- type IntegrationCredentials
- type InvalidConfigurationParameterError
- type OnlyofficeBuilderConfig
- type OnlyofficeCallbackConfig
- type OnlyofficeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildNewOnlyofficeConfig ¶
func BuildNewOnlyofficeConfig(path string) func() (*OnlyofficeConfig, error)
Types ¶
type IntegrationCredentials ¶
type IntegrationCredentials struct { Credentials struct { ClientID string `yaml:"client_id" env:"CREDENTIALS_CLIENT_ID"` ClientSecret string `yaml:"client_secret" env:"CREDENTIALS_CLIENT_SECRET"` RedirectURL string `yaml:"redirect_url" env:"CREDENTIALS_REDIRECT_URL"` AuthURL string `yaml:"auth_url" env:"CREDENTIALS_AUTH_URL"` TokenURL string `yaml:"token_url" env:"CREDENTIALS_TOKEN_URL"` Scopes []string `yaml:"scopes" env:"CREDENTIALS_SCOPES"` } `yaml:"credentials"` }
func (*IntegrationCredentials) Validate ¶
func (ic *IntegrationCredentials) Validate() error
type InvalidConfigurationParameterError ¶
func (*InvalidConfigurationParameterError) Error ¶
func (e *InvalidConfigurationParameterError) Error() string
type OnlyofficeBuilderConfig ¶
type OnlyofficeBuilderConfig struct { DocumentServerURL string `yaml:"document_server_url" env:"ONLYOFFICE_DS_URL,overwrite"` DocumentServerSecret string `yaml:"document_server_secret" env:"ONLYOFFICE_DS_SECRET,overwrite"` DocumentServerHeader string `yaml:"document_server_header" env:"ONLYOFFICE_DS_HEADER,overwrite"` GatewayURL string `yaml:"gateway_url" env:"ONLYOFFICE_GATEWAY_URL,overwrite"` CallbackURL string `yaml:"callback_url" env:"ONLYOFFICE_CALLBACK_URL,overwrite"` AllowedDownloads int `yaml:"allowed_downloads" env:"ONLYOFFICE_ALLOWED_DOWNLOADS,overwrite"` }
func (*OnlyofficeBuilderConfig) Validate ¶
func (oc *OnlyofficeBuilderConfig) Validate() error
type OnlyofficeCallbackConfig ¶
type OnlyofficeCallbackConfig struct { MaxSize int64 `yaml:"max_size" env:"ONLYOFFICE_CALLBACK_MAX_SIZE,overwrite"` UploadTimeout int `yaml:"upload_timeout" env:"ONLYOFFICE_CALLBACK_UPLOAD_TIMEOUT,overwrite"` }
func (*OnlyofficeCallbackConfig) Validate ¶
func (c *OnlyofficeCallbackConfig) Validate() error
type OnlyofficeConfig ¶
type OnlyofficeConfig struct { Onlyoffice struct { Builder OnlyofficeBuilderConfig `yaml:"builder"` Callback OnlyofficeCallbackConfig `yaml:"callback"` } `yaml:"onlyoffice"` }
func (*OnlyofficeConfig) Validate ¶
func (oc *OnlyofficeConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.