APIv1

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2017 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiIndexVersion

func ApiIndexVersion(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Sends a simple welcome-message to the user.

func SendJsonMessage

func SendJsonMessage(w http.ResponseWriter, code int, success bool, message string)

Sends a simple Json-message. It contains a success-bool and a message, which may be empty.

Types

type BasicResponse

type BasicResponse struct {
	Success bool   `json:"requestSuccess"`
	Message string `json:"message"`
}

Contains a success-bool and a message, which may be empty.

Jump to

Keyboard shortcuts

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