http

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port            string
	ReadTimeout     int
	WriteTimeout    int
	GracefulTimeout int
}

Config is basic HTTP server config.

type Server

type Server interface {
	Run() chan error
	Router() chi.Router
	Close() error
}

Server serves HTTP endpoints.

func New

func New(cfg Config) Server

New to create new web server.

Jump to

Keyboard shortcuts

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