query

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 1 Imported by: 120

Documentation

Index

Constants

View Source
const (
	// DefaultPageSize defines the default page size
	DefaultPageSize uint = 25
	// ParamKeyPage defines query param key of page number
	ParamKeyPage = "page_number"
	// ParamKeyPageSize defines query param key of page size
	ParamKeyPageSize = "page_size"
	// ParamKeyNonStoppedOnly defines query param key of querying non stopped periodic executions
	ParamKeyNonStoppedOnly = "non_dead_only"
	// ParamKeyCursor defines query param of cursor for fetching job stats with batches
	ParamKeyCursor = "cursor"
	// ParamKeyJobKind defines query param of job kind
	ParamKeyJobKind = "kind"
	// ExtraParamKeyNonStoppedOnly defines extra parameter key for querying non stopped periodic executions
	ExtraParamKeyNonStoppedOnly = "NonDeadOnly"
	// ExtraParamKeyCursor defines extra parameter key for the cursor of fetching job stats with batches
	ExtraParamKeyCursor = "Cursor"
	// ExtraParamKeyKind defines extra parameter key for the job kind
	ExtraParamKeyKind = "Kind"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraParameters

type ExtraParameters map[string]interface{}

ExtraParameters to keep non pagination query parameters

func (ExtraParameters) Get

func (ep ExtraParameters) Get(key string) (interface{}, bool)

Get the extra parameter by key

func (ExtraParameters) Set

func (ep ExtraParameters) Set(key string, v interface{})

Set extra parameters

func (ExtraParameters) String

func (ep ExtraParameters) String() string

String returns the json string of ExtraParameters

type Parameter

type Parameter struct {
	PageNumber uint
	PageSize   uint
	Extras     ExtraParameters
}

Parameter for getting executions

Jump to

Keyboard shortcuts

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