Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 7 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 {
	DB           *gorm.DB
	Hub          *ws.Hub
	Broker       *sse.Broker
	SecureCookie bool
}

Server holds the shared dependencies used by all HTTP handlers.

func New

func New(gdb *gorm.DB, hub *ws.Hub, broker *sse.Broker, secureCookie bool) *Server

New creates a Server with the given dependencies.

func (*Server) Routes

func (s *Server) Routes() http.Handler

Routes returns the full HTTP mux with all handler groups registered.

Jump to

Keyboard shortcuts

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