server

package
v0.0.0-...-a037ba2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Echo              *echo.Echo
	DB                database.Service
	Queries           *generated.Queries
	AuthService       *services.AuthService
	MediaService      *services.MediaService
	PageService       *services.PageService
	ProjectService    *services.ProjectService
	TagService        *services.TagService
	SessionManager    *session.SessionManager
	SessionMiddleware *middleware.SessionMiddleware
	Log               *slog.Logger
}

func NewServer

func NewServer() *Server

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes()

RegisterRoutes defines the API endpoints

func (*Server) Start

func (s *Server) Start(ctx context.Context, port string) error

Start runs the Echo server on a specific port address

Jump to

Keyboard shortcuts

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