api

package
v0.0.0-...-692641c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(enableCORS bool) (*chi.Mux, error)

New configures application resources and routes.

func SetRequestID

func SetRequestID() func(next http.Handler) http.Handler

SetRequestID set the X-Request-id in the header.

Types

type Server

type Server struct {
	*http.Server
}

Server provides an http.Server.

func NewServer

func NewServer() (*Server, error)

NewServer creates and configures an APIServer serving all application routes.

func (*Server) Start

func (srv *Server) Start()

Start runs ListenAndServe on the http.Server with graceful shutdown.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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