controller

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCouldNotCastValue    = errors.New("could not cast value to type")
	ErrSessionTokenCasting  = errors.New("could not cast a session token")
	ErrUserIdMatching       = errors.New("token uid and state uid do not match")
	ErrInvalidStateValue    = errors.New("invalid state value")
	ErrInvalidVerifierValue = errors.New("invalid verifier value")
)

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	// contains filtered or unexported fields
}

func NewAuthController

func NewAuthController(
	client client.Client,
	api aclient.DropboxClient,
	jwtManager crypto.JwtManager,
	stateGenerator crypto.StateGenerator,
	config *config.ServerConfig,
	oauth *oauth2.Config,
	logger log.Logger,
) 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,
	api aclient.DropboxClient,
	jwtManager crypto.JwtManager,
	hasher crypto.Hasher,
	fileUtil onlyoffice.OnlyofficeFileUtility,
	server *config.ServerConfig,
	onlyoffice *shared.OnlyofficeConfig,
	credentials *oauth2.Config,
	logger log.Logger,
) EditorController

func (EditorController) BuildEditorPage

func (c EditorController) BuildEditorPage() http.HandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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