datatable

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Columns map[int64]*RequestColumn `json:"columns"`
	Order   map[int64]*RequestOrder  `json:"order"`
	Start   int64                    `json:"start"`
	Length  int64                    `json:"length"`
	Draw    int64                    `json:"draw"`
	Search  *RequestColumnSearch     `json:"search"`
}

func (*Request) FromRequest

func (r *Request) FromRequest(req *http.Request) (err error)

type RequestColumn

type RequestColumn struct {
	Data       string               `json:"data"`
	Name       string               `json:"name"`
	Searchable bool                 `json:"searchable"`
	Orderable  bool                 `json:"orderable"`
	Search     *RequestColumnSearch `json:"search"`
}

func (*RequestColumn) FromKV

func (rc *RequestColumn) FromKV(key string, vals []string) (err error)

type RequestColumnSearch

type RequestColumnSearch struct {
	Value string `json:"value"`
	Regex bool   `json:"regex"`
}

func (*RequestColumnSearch) FromKV

func (rc *RequestColumnSearch) FromKV(key string, vals []string) (err error)

type RequestOrder

type RequestOrder struct {
	Column int64  `json:"column"`
	Dir    string `json:"dir"`
}

func (*RequestOrder) FromKV

func (ro *RequestOrder) FromKV(key string, vals []string) (err error)

Jump to

Keyboard shortcuts

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