common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorInternal = errors.New("internal error")
View Source
var ErrorNotFound = errors.New("not found")

Functions

This section is empty.

Types

type CompositeQueryMod added in v1.1.0

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

func NewCompositeQueryMod added in v1.1.0

func NewCompositeQueryMod(children ...QueryMod) CompositeQueryMod

func (CompositeQueryMod) Apply added in v1.1.0

func (c CompositeQueryMod) Apply(ctx *gin.Context)

type Pagination

type Pagination interface {
	QueryMod
	Format(*gin.Context, []any) (any, error)
}

type QueryMod

type QueryMod interface {
	Apply(*gin.Context)
}

Jump to

Keyboard shortcuts

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