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
Click to show internal directories.
Click to hide internal directories.