web

package
v0.0.0-...-6e90666 Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(r *http.Request) *db.User

CheckAuth checks if the given request is authenticated.

func GetFileByID

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

GetFileByID handles an ID-based GET request.

func GetFileByPath

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

GetFileByPath handles a path-based GET request.

func Open

func Open()

Open opens the HTTP server.

func UpdateFileByID

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

UpdateFileByID handles an ID-based PUT request.

func UpdateFileByPath

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

UpdateFileByPath handles a path-based PUT request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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