v1

package
v0.0.0-...-384c410 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(w http.ResponseWriter, req *http.Request)

DownloadFile ...

func Index

func Index(w http.ResponseWriter, r *http.Request)

Index handler

func JSONResponse

func JSONResponse(w http.ResponseWriter, payload Response, statusCode int)

JSONResponse ...

func Router

func Router() http.Handler

Router ...

Types

type Response

type Response struct {
	Success bool        `json:"success"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
	Error   []string    `json:"error,omitempty"`
}

Response ...

Jump to

Keyboard shortcuts

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