controllers

package
v0.0.0-...-60376ea Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBody

func ValidateBody(schema interface{}, c *gin.Context) bool

Types

type Ping

type Ping struct{}

func (Ping) Response

func (Ping) Response(c *gin.Context)

type ResponseType

type ResponseType struct{}
var (
	Response ResponseType
)

func (ResponseType) BadRequest

func (ResponseType) BadRequest(c *gin.Context, msg string)

func (ResponseType) Forbidden

func (ResponseType) Forbidden(c *gin.Context, msg string)

func (ResponseType) FromError

func (ResponseType) FromError(c *gin.Context, err exception.Response)

func (ResponseType) NotFound

func (ResponseType) NotFound(c *gin.Context, msg string)

func (ResponseType) Success

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

func (ResponseType) Unauthorized

func (ResponseType) Unauthorized(c *gin.Context, msg string)

type Secret

type Secret struct{}

func (Secret) Get

func (Secret) Get(c *gin.Context)

type User

type User struct{}

func (User) Login

func (ctrl User) Login(c *gin.Context)

func (User) Register

func (ctrl User) Register(c *gin.Context)

Jump to

Keyboard shortcuts

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