server

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

HTTPServer represents the HTTP server instance.

func NewHTTPServer

func NewHTTPServer(
	cfg *config.Config,
	middlewareProvider *middleware.Provider,
	workspaceController *controller.WorkspaceController,
	injectableController *controller.ContentInjectableController,
	templateController *controller.ContentTemplateController,
	adminController *controller.AdminController,
	meController *controller.MeController,
	tenantController *controller.TenantController,
	documentTypeController *controller.DocumentTypeController,
	renderController *controller.RenderController,
	globalMiddleware []gin.HandlerFunc,
	apiMiddleware []gin.HandlerFunc,
	renderAuthenticator port.RenderAuthenticator,
) *HTTPServer

NewHTTPServer creates a new HTTP server with all routes and middleware configured.

func (*HTTPServer) Engine

func (s *HTTPServer) Engine() *gin.Engine

Engine returns the underlying Gin engine. Useful for testing.

func (*HTTPServer) Start

func (s *HTTPServer) Start(ctx context.Context) error

Start starts the HTTP server.

Jump to

Keyboard shortcuts

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