json

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSONQueryHandler

func CreateJSONQueryHandler(
	cmd cmds.Command,
	options ...QueryHandlerOption,
) gin.HandlerFunc

Types

type QueryHandler

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

func NewQueryHandler

func NewQueryHandler(cmd cmds.Command, options ...QueryHandlerOption) *QueryHandler

func (*QueryHandler) Handle

func (h *QueryHandler) Handle(c *gin.Context, writer io.Writer) error

type QueryHandlerOption

type QueryHandlerOption func(*QueryHandler)

func WithMiddlewares added in v0.5.0

func WithMiddlewares(middlewares ...middlewares.Middleware) QueryHandlerOption

Jump to

Keyboard shortcuts

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