common

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	PageNo     int64       `json:"pageNo"`
	PageSize   int64       `json:"pageSize"`
	TotalPage  int64       `json:"totalPage"`
	TotalCount int64       `json:"totalCount"`
	List       interface{} `json:"list"`
}

type QueryParam

type QueryParam struct {
	PageNo   int64                  `json:"pageNo"`
	PageSize int64                  `json:"pageSize"`
	Query    map[string]interface{} `json:"query"`
	Sortby   string                 `json:"sortby"`
	Groupby  []string               `json:"groupby"`
	Relate   string                 `json:"relate"`
	// only for kubernetes resource
	LabelSelector string `json:"-"`
}

func (*QueryParam) Limit

func (q *QueryParam) Limit() int64

func (*QueryParam) NewPage

func (q *QueryParam) NewPage(count int64, list interface{}) *Page

func (*QueryParam) Offset

func (q *QueryParam) Offset() int64

Jump to

Keyboard shortcuts

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