server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteError added in v0.4.0

func WriteError(w http.ResponseWriter, status int, message string)

func WriteJSON added in v0.4.0

func WriteJSON(w http.ResponseWriter, status int, data any)

Types

type Server added in v0.4.0

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) *Server

Jump to

Keyboard shortcuts

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