server

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package server contains all the logic regarding the http server, CORS, and route registering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(h *handlers.Handler) *http.Server

NewServer creates and return a http.Server struct, sets timeouts, register routes and optionally adds CORS handling.

Types

This section is empty.

Jump to

Keyboard shortcuts

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