sort

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clause

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

Clause sort clause.

type Sort

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

Sort provides sorting.

func (*Sort) Add added in v0.5.0

func (r *Sort) Add(name string, aliases ...string)

Add adds virtual field and aliases.

func (*Sort) Sorted

func (r *Sort) Sorted(in *gorm.DB) (out *gorm.DB)

Sorted returns sorted DB.

func (*Sort) With

func (r *Sort) With(ctx *gin.Context, m any) (err error)

With context.

type SortError

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

SortError reports sorting error.

func (*SortError) Error

func (r *SortError) Error() string

func (*SortError) Is

func (r *SortError) Is(err error) (matched bool)

Jump to

Keyboard shortcuts

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