controller

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

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, fileUtil onlyoffice.OnlyofficeFileUtility, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL