server

package
v0.0.0-...-453ec06 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Dir = "./data"

Variables

This section is empty.

Functions

func Get

func Get(res http.ResponseWriter, req *http.Request)

Get function the data in a JSON format

func GetCsv

func GetCsv(res http.ResponseWriter, req *http.Request)

GetCSV function returns the CSV file the the respective route

func GetJson

func GetJson(res http.ResponseWriter, req *http.Request)

GetJson function returns the JSON file in the respective route

func HandleResquests

func HandleResquests()

HandleRequest function handles the routes of the application using the github.com/gorilla/mux package

Types

This section is empty.

Jump to

Keyboard shortcuts

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