context

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*gin.Context
}

func WithGinContext

func WithGinContext(context *gin.Context) *Context

func (*Context) Failed

func (c *Context) Failed(err error, variables ...interface{})

func (*Context) FailedWithError

func (c *Context) FailedWithError(err error, httpCode ...int)

func (*Context) Success

func (c *Context) Success(data interface{}, metas ...interface{})

func (*Context) User

func (c *Context) User() *model.User

Jump to

Keyboard shortcuts

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