web

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	authController controller.AuthController,
	editorController controller.EditorController,
	fileController controller.FileController,
	sessionMiddleware middleware.SessionMiddleware,
	credentials *oauth2.Config,
) shttp.ServerEngine

NewService initializes http server with options.

Types

type BoxHTTPService

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

func (BoxHTTPService) ApplyMiddleware

func (s BoxHTTPService) ApplyMiddleware(middlewares ...func(http.Handler) http.Handler)

ApplyMiddleware useed to apply http server middlewares.

func (*BoxHTTPService) InitializeRoutes

func (s *BoxHTTPService) InitializeRoutes()

InitializeRoutes builds all http routes.

func (*BoxHTTPService) InitializeServer

func (s *BoxHTTPService) InitializeServer() *chi.Mux

InitializeServer sets all injected dependencies.

func (BoxHTTPService) NewHandler

func (s BoxHTTPService) NewHandler() interface {
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

NewHandler returns http server engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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