server

package
Version: v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbortWithError added in v0.1.3

func AbortWithError(c *gin.Context,
	statusCode int,
	err error)

AbortWithError aborts the request and returns the error in the response body

func Setup

func Setup(_port int, loglevel string) *gin.Engine

Setup ...

func Start

func Start(r *gin.Engine)

Start ...

func Stop

func Stop()

Stop ...

func WriteResponse

func WriteResponse(
	c *gin.Context,
	statusCode int,
	responseBody interface{},
)

WriteResponse ...

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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