Documentation
¶
Overview ¶
*
* * (c) Copyright Ascensio System SIA 2024 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSemaphoreNotAllowed = errors.New("could not acquire semaphore")
)
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
func NewAuthController ¶
func NewAuthController( client client.Client, boxClient shared.BoxAPI, jwtManager crypto.JwtManager, store *sessions.CookieStore, stateGenerator crypto.StateGenerator, config *config.ServerConfig, onlyoffice *shared.OnlyofficeConfig, oauth *oauth2.Config, logger log.Logger, session *sessions.CookieStore, ) AuthController
func (AuthController) BuildGetAuth ¶
func (c AuthController) BuildGetAuth() http.HandlerFunc
func (AuthController) BuildGetRedirect ¶
func (c AuthController) BuildGetRedirect() http.HandlerFunc
type EditorController ¶
type EditorController struct {
// contains filtered or unexported fields
}
func NewEditorController ¶
func NewEditorController( client client.Client, server *config.ServerConfig, store *sessions.CookieStore, logger log.Logger, ) EditorController
func (EditorController) BuildGetEditor ¶
func (c EditorController) BuildGetEditor() http.HandlerFunc
type FileController ¶
type FileController struct {
// contains filtered or unexported fields
}
func NewFileController ¶
func NewFileController( client client.Client, boxClient shared.BoxAPI, jwtManager crypto.JwtManager, credentials *oauth2.Config, formatManager format.FormatManager, hasher crypto.Hasher, server *config.ServerConfig, onlyoffice *shared.OnlyofficeConfig, store *sessions.CookieStore, logger log.Logger, ) FileController
func (FileController) BuildConvertFile ¶
func (c FileController) BuildConvertFile() http.HandlerFunc
func (FileController) BuildConvertPage ¶
func (c FileController) BuildConvertPage() http.HandlerFunc
type ShareController ¶ added in v1.1.0
type ShareController struct {
// contains filtered or unexported fields
}
func NewShareController ¶ added in v1.1.0
func NewShareController( server *config.ServerConfig, boxClient shared.BoxAPI, client client.Client, logger log.Logger, ) ShareController
func (ShareController) BuildGetInvitations ¶ added in v1.1.0
func (c ShareController) BuildGetInvitations() http.HandlerFunc
func (ShareController) BuildInviteUser ¶ added in v1.1.0
func (c ShareController) BuildInviteUser() http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.