httpserver

package
v0.0.0-...-d753391 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(port int, router http.Handler, writeTimeout int, readTimeout int, allowedCorsMethods handlers.CORSOption, allowedCorsOrigins handlers.CORSOption) *http.Server

New creates a HTTP server. Receives port, routes and write and read timeout

func Start

func Start(server *http.Server)

Start starts an http server

Types

This section is empty.

Jump to

Keyboard shortcuts

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