common

package
v0.0.0-...-e138ea5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EQ = "eq"
	GT = "gt"
	LT = "lt"
)

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error, context *gin.Context)

func GetTimePeriod

func GetTimePeriod(query string, con []interface{}, nickName string) (string, []interface{})

func GetTimePeriodByPeriod

func GetTimePeriodByPeriod(query string, con []interface{}, start interface{}, end interface{}, nickName string) (string, []interface{})

func GetTimePeriodByoffset

func GetTimePeriodByoffset(query string, con []interface{}, nickName string, offset time.Duration) (string, []interface{})

func GetTwoWeekPeriod

func GetTwoWeekPeriod(query string, con []interface{}, nickName string) (string, []interface{})

func ReadJSON

func ReadJSON(context *gin.Context, obj interface{})

func ResponseList

func ResponseList(context *gin.Context, obj ...interface{})

func StandardBadRequest

func StandardBadRequest(context *gin.Context)

func StandardError

func StandardError(context *gin.Context)

func StandardJoke

func StandardJoke(context *gin.Context)

func StandardNotFound

func StandardNotFound(context *gin.Context)

func StandardOk

func StandardOk(context *gin.Context, obj interface{})

func StandardSuccess

func StandardSuccess(context *gin.Context)

func TimePeriod

func TimePeriod(query string, con []interface{}, nickName string, context *gin.Context) (string, []interface{})

Types

type Cols

type Cols struct {
	// contains filtered or unexported fields
}

type Payload

type Payload struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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