server

package
v0.0.0-...-9d7e9a8 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS() func(http.Handler) http.Handler

CORS provides the cors middleware

func Compression

func Compression() func(http.Handler) http.Handler

Compression provides gzip compression

func Helmet

func Helmet() func(http.Handler) http.Handler

Helmet provides essential security extensions

Types

type Server

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

Server type

func New

func New() (*Server, error)

New will set up a new Server

func (*Server) Serve

func (server *Server) Serve() error

Serve will start the server and make it listen for requests

Jump to

Keyboard shortcuts

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