controller

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouter

func CreateRouter(cfg *config.Config) *mux.Router

CreateRouter creates the router for the http server

func GzipHandler

func GzipHandler(next http.Handler) http.Handler

GzipHandler compresses the response of a given handler if the request's headers specify that the client supports gzip encoding

func Handle

func Handle()

Handle creates the router and starts the server

Types

This section is empty.

Jump to

Keyboard shortcuts

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