json

package
v0.4.18 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSONQueryHandler

func CreateJSONQueryHandler(
	cmd cmds.Command,
	parserOptions ...parser.ParserOption,
) 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 WithQueryHandlerContextMiddlewares

func WithQueryHandlerContextMiddlewares(middlewares ...glazed.ContextMiddleware) QueryHandlerOption

func WithQueryHandlerParserOptions

func WithQueryHandlerParserOptions(options ...parser.ParserOption) QueryHandlerOption

WithQueryHandlerParserOptions sets the parser options for the QueryHandler

Jump to

Keyboard shortcuts

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