http

package
v0.0.0-...-baa204d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

README

http/

Handles everything HTTP related. Basically calls methods of services based on which endpoint was hit by a request.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	*chi.Mux

	WebHandler *web.Handler
}

A Handler ties together the handlers found in api and web.

func NewHandler

NewHandler creates a handler that wraps the subhandlers for the entire app.

type Server

type Server struct {
	*http.Server
}

A Server wraps an http.Server and provides some additional functionality.

func NewServer

func NewServer(address string, h *Handler) (s *Server)

NewServer creates a new Server.

func (*Server) Start

func (s *Server) Start() (err error)

Start begins listening for HTTP It will attempt to gracefully shutdown on SIGINT.

Directories

Path Synopsis
Package middleware provides functions to inspect and transform incoming requests before they're routed out to their corrrect handler.
Package middleware provides functions to inspect and transform incoming requests before they're routed out to their corrrect handler.

Jump to

Keyboard shortcuts

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