ginHelper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRequest

func DecodeRequest[T any](c *gin.Context) (interface{}, error)

func DefaultGetValidParams

func DefaultGetValidParams(c *gin.Context, params interface{}) error

func MakeNatsProxyHandler

func MakeNatsProxyHandler(n *nats.Conn, sub string, dec DecodeRequestFunc, options ...core.PublisherOption) gin.HandlerFunc

func Run

func Run(r *gin.Engine, addr string)

Types

type DecodeRequestFunc

type DecodeRequestFunc func(c *gin.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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