core

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResponseInContext

func GetResponseInContext(contextKey map[string]interface{}) *data.PageResponse

GetResponseInContext get response struct from context

func SetCookie

func SetCookie(c *gin.Context, cookieName, cookieVal string, expiresAt time.Time, httpOnly bool)

SetCookie sets cookie

func WriteResponse

func WriteResponse(c *gin.Context, code int, obj interface{})

WriteResponse Write api response

func WriteUnexpectedError

func WriteUnexpectedError(c *gin.Context, response *data.PageResponse)

WriteUnexpectedError Write unexpected api response

Types

This section is empty.

Jump to

Keyboard shortcuts

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