backend

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeApp

func ServeApp(db *sqlx.DB, port int) error

ServeApp serves web app in specified port

Types

type SlowDown

type SlowDown struct {
	// contains filtered or unexported fields
}

SlowDown is middleware to throttle response speed. Used to emulate low connection speed.

func (SlowDown) ServeHTTP

func (sd SlowDown) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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