response

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package response is used by all actions to write their final result as JSON

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Created added in v0.1.4

func Created(c *gin.Context)

Created reports successful creation of a resource.

func Error added in v0.1.4

func Error(c *gin.Context, responseErrors errors.APIErrors)

Error reports the specified errors

func OK added in v0.1.4

func OK(c *gin.Context)

OK reports a generic success

func OKBytes added in v0.6.3

func OKBytes(c *gin.Context, response []byte)

OKBytes reports a success with some data

func OKReturn added in v0.1.4

func OKReturn(c *gin.Context, response interface{})

OKReturn reports a success with some data

func OKYaml added in v1.8.1

func OKYaml(c *gin.Context, response interface{})

OKYaml reports a success with some YAML data

Types

This section is empty.

Jump to

Keyboard shortcuts

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