Documentation ¶
Overview ¶
Package apl provides the datatypes for construction APL. They usually extend the functionality of existing types from the `query` package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format uint8
Format represents the format of an APL query.
func (Format) EncodeValues ¶
EncodeValues implements `query.Encoder`. It is in place to encode the Format into a string URL value because that's what the server expects.
type Options ¶
type Options struct { // StartTime of the query. StartTime time.Time `url:"-"` // EndTime of the query. EndTime time.Time `url:"-"` // NoCache omits the query cache. NoCache bool `url:"nocache,omitempty"` // Save the query on the server, if set to `true`. The ID of the saved query // is returned with the query result as part of the response. // HINT(lukasmalkmus): The server automatically sets the query kind to "apl" // for queries going to the "/_apl" query endpoint. This allows us to set // any value for the `saveAsKind` query param. For user experience, we use a // bool here instead of forcing the user to set the value to `query.APL`. Save bool `url:"saveAsKind,omitempty"` // Format specifies the format of the APL query. Defaults to Legacy. Format Format `url:"format"` }
Options specifies the optional parameters to APL query methods.
Click to show internal directories.
Click to hide internal directories.