gin

package
v0.0.1-202404291803 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinWriter

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

func NewGinRespWriter

func NewGinRespWriter(gin *gin.Context) *GinWriter

func (*GinWriter) AbortWithStatusJSON

func (g *GinWriter) AbortWithStatusJSON(code int, obj any)

AbortWithStatusJSON implements response.IRespWriter.

func (*GinWriter) Get

func (g *GinWriter) Get(key string) (val any, exists bool)

Get implements response.IRespWriter.

func (*GinWriter) GetHeader

func (g *GinWriter) GetHeader(key string) string

GetHeader implements response.IRespWriter.

func (*GinWriter) Set

func (g *GinWriter) Set(key string, val any)

Set implements response.IRespWriter.

func (*GinWriter) SetHeader

func (g *GinWriter) SetHeader(key string, val string)

SetHeader implements response.IRespWriter.

Jump to

Keyboard shortcuts

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