http

package
v0.0.0-...-4e1ecbb Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const K = 42

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	HX bool
}

type Handler

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

func NewHandler

func NewHandler(
	bpool *bpool.BufferPool,
) *Handler

type HealtcheckResponse

type HealtcheckResponse struct {
	Answer uint `json:"answer"`
}

Healthcheck

func (*HealtcheckResponse) Render

type Server

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

func New

func New(
	port uint,
	handler *Handler,
) *Server

func (*Server) Run

func (srv *Server) Run() error

func (*Server) Shutdown

func (srv *Server) Shutdown()

Jump to

Keyboard shortcuts

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