tableurl

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: BSD-3-Clause Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const ASC = "asc"
View Source
const DESC = "desc"

Variables

This section is empty.

Functions

func ScanOrderByArg

func ScanOrderByArg(argOrderby string) (orderByField string, dirUp bool)

Types

type ListURL

type ListURL struct {
	Limit            web.QueryArg[int]
	Page             web.QueryArg[int]
	OrderBy          web.QueryArg[string]
	SearchField      web.QueryArg[string]
	SearchComparison web.QueryArg[string]
	SearchValue      web.QueryArg[string]
}

func New

func New() *ListURL

func (*ListURL) ArgsVals

func (l *ListURL) ArgsVals(sortcolname string, sortdirUP bool) (argVals []web.Argument)

func (*ListURL) MergeArgs

func (l *ListURL) MergeArgs(targets ...web.Argument) []web.Argument

func (ListURL) Redirect

func (l ListURL) Redirect(listRoute route, args ...web.Argument) error

func (*ListURL) SortByColumnArgVal

func (l *ListURL) SortByColumnArgVal(colname string, dirUP bool) web.Argument

func (*ListURL) URL

func (l *ListURL) URL(listRoute route, args ...web.Argument) string

Jump to

Keyboard shortcuts

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