api

package
v0.0.0-...-660482d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
}

BaseController handle all base methods

func (*BaseController) SendJSON

func (c *BaseController) SendJSON(w http.ResponseWriter, r *http.Request, v interface{}, code int)

SendJSON marshals v to a json struct and send the appropriate headers to w

type Error

type Error struct {
	Message string `json:"message"`
	Error   string `json:"error"`
}

Error is a struct to return an auth error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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