simpleapi

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

  1. Run MYSQL in docker-container:
mkdir -p /host # for accessing from localhost
docker run --name my-mysql                               \
           -e     MYSQL_ROOT_PASSWORD=my-secret-password \
           -v     /host:/shared                          \
           mysql

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(e error)

func GetDB

func GetDB() *sql.DB

func Home

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

www

func Login

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

auth

func RegisterRouter

func RegisterRouter() *mux.Router

func Run

func Run()

Types

This section is empty.

Jump to

Keyboard shortcuts

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