pickgin

package
v1.12.19 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: BSD-3-Clause Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GinContextType = reflect.TypeOf((*ginctx.Context)(nil))
)

Functions

func Register added in v1.5.1

func Register(engine *gin.Engine, svcs ...pick.Service[gin.HandlerFunc])

func RegisterGrpcService added in v1.8.6

func RegisterGrpcService(engine *gin.Engine, svcs ...pick.Service[gin.HandlerFunc])

Types

type Writer added in v1.8.7

type Writer struct {
	*gin.Context
}

func (Writer) Header added in v1.9.0

func (w Writer) Header() httpx.Header

func (Writer) RespondStream added in v1.12.17

func (w Writer) RespondStream(ctx context.Context, seq iter.Seq[httpx.WriterToCloser]) (int, error)

func (Writer) Status added in v1.8.7

func (w Writer) Status(code int)

func (Writer) Write added in v1.8.7

func (w Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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