server

package
v0.1.847 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(db *sql.DB, version string, verbose bool, output io.Writer, staticPath string, siteName string) (http.Handler, error)

Types

type Server

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

func New

func New(addr string, db *sql.DB, version string, verbose bool, output io.Writer, staticPath string, siteName string) (*Server, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Shutdown added in v0.1.842

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the HTTP server and stops background goroutines.

Jump to

Keyboard shortcuts

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