server

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: AGPL-3.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) ApplyMiddleware

func (s *Server) ApplyMiddleware(q *database.Queries, reRoutes map[string]string)

func (*Server) RegisterRoutes

func (server *Server) RegisterRoutes(hdlr *handler.Handler)

func (*Server) Start

func (s *Server) Start()

Starts the server in a new routine

func (*Server) Stop

func (s *Server) Stop()

Tries to the stops the server gracefully

Jump to

Keyboard shortcuts

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