limit

package
v0.0.0-...-23e8124 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLimit

type DefaultLimit struct {
	LimitType LimitType               `json:"type"`
	Limit     int64                   `json:"limit,omitempty"`
	Offset    int64                   `json:"offset,omitempty"`
	Columns   []sorting.OrderByColumn `json:"columns,omitempty"`
}

func (DefaultLimit) Type

func (d DefaultLimit) Type() string

type Limit

type Limit interface {
	Type() string
}

type LimitType

type LimitType int
const (
	Default LimitType = iota
)

func (LimitType) MarshalJSON

func (l LimitType) MarshalJSON() ([]byte, error)

func (LimitType) Name

func (l LimitType) Name() string

func (LimitType) Ordinal

func (l LimitType) Ordinal() int

func (LimitType) Values

func (l LimitType) Values() *[]string

type SimpleLimit

type SimpleLimit struct {
	LimitType LimitType `json:"type"`
	Limit     int64     `json:"limit,omitempty"`
	Offset    int64     `json:"offset,omitempty"`
	Columns   []string  `json:"columns,omitempty"`
}

func (SimpleLimit) Type

func (s SimpleLimit) Type() string

Jump to

Keyboard shortcuts

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