Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type SearchRelativeBadRequest
- type SearchRelativeOK
- type SearchRelativeParams
- func NewSearchRelativeParams() *SearchRelativeParams
- func NewSearchRelativeParamsWithContext(ctx context.Context) *SearchRelativeParams
- func NewSearchRelativeParamsWithHTTPClient(client *http.Client) *SearchRelativeParams
- func NewSearchRelativeParamsWithTimeout(timeout time.Duration) *SearchRelativeParams
- func (o *SearchRelativeParams) SetContext(ctx context.Context)
- func (o *SearchRelativeParams) SetDecorate(decorate *bool)
- func (o *SearchRelativeParams) SetDefaults()
- func (o *SearchRelativeParams) SetFields(fields *string)
- func (o *SearchRelativeParams) SetFilter(filter *string)
- func (o *SearchRelativeParams) SetHTTPClient(client *http.Client)
- func (o *SearchRelativeParams) SetLimit(limit *int64)
- func (o *SearchRelativeParams) SetOffset(offset *int64)
- func (o *SearchRelativeParams) SetQuery(query string)
- func (o *SearchRelativeParams) SetRange(rangeVar int64)
- func (o *SearchRelativeParams) SetSort(sort *string)
- func (o *SearchRelativeParams) SetTimeout(timeout time.Duration)
- func (o *SearchRelativeParams) WithContext(ctx context.Context) *SearchRelativeParams
- func (o *SearchRelativeParams) WithDecorate(decorate *bool) *SearchRelativeParams
- func (o *SearchRelativeParams) WithDefaults() *SearchRelativeParams
- func (o *SearchRelativeParams) WithFields(fields *string) *SearchRelativeParams
- func (o *SearchRelativeParams) WithFilter(filter *string) *SearchRelativeParams
- func (o *SearchRelativeParams) WithHTTPClient(client *http.Client) *SearchRelativeParams
- func (o *SearchRelativeParams) WithLimit(limit *int64) *SearchRelativeParams
- func (o *SearchRelativeParams) WithOffset(offset *int64) *SearchRelativeParams
- func (o *SearchRelativeParams) WithQuery(query string) *SearchRelativeParams
- func (o *SearchRelativeParams) WithRange(rangeVar int64) *SearchRelativeParams
- func (o *SearchRelativeParams) WithSort(sort *string) *SearchRelativeParams
- func (o *SearchRelativeParams) WithTimeout(timeout time.Duration) *SearchRelativeParams
- func (o *SearchRelativeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchRelativeReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for saved API
func (*Client) SearchRelative ¶
func (a *Client) SearchRelative(params *SearchRelativeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchRelativeOK, error)
SearchRelative messages search with relative timerange
Search for messages in a relative timerange, specified as seconds from now. Example: 300 means search from 5 minutes ago to now.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { SearchRelative(params *SearchRelativeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchRelativeOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new saved API client.
type SearchRelativeBadRequest ¶
type SearchRelativeBadRequest struct { }
SearchRelativeBadRequest describes a response with status code 400, with default header values.
Invalid timerange parameters provided.
func NewSearchRelativeBadRequest ¶
func NewSearchRelativeBadRequest() *SearchRelativeBadRequest
NewSearchRelativeBadRequest creates a SearchRelativeBadRequest with default headers values
func (*SearchRelativeBadRequest) Error ¶
func (o *SearchRelativeBadRequest) Error() string
type SearchRelativeOK ¶
type SearchRelativeOK struct {
Payload *models.SearchResponse
}
SearchRelativeOK describes a response with status code 200, with default header values.
No response was specified
func NewSearchRelativeOK ¶
func NewSearchRelativeOK() *SearchRelativeOK
NewSearchRelativeOK creates a SearchRelativeOK with default headers values
func (*SearchRelativeOK) Error ¶
func (o *SearchRelativeOK) Error() string
func (*SearchRelativeOK) GetPayload ¶
func (o *SearchRelativeOK) GetPayload() *models.SearchResponse
type SearchRelativeParams ¶
type SearchRelativeParams struct { /* Decorate. Run decorators on search result Default: true */ Decorate *bool /* Fields. Comma separated list of fields to return */ Fields *string /* Filter. Filter */ Filter *string /* Limit. Maximum number of messages to return. */ Limit *int64 /* Offset. Offset */ Offset *int64 /* Query. Query (Lucene syntax) */ Query string /* Range. Relative timeframe to search in. See method description. */ Range int64 /* Sort. Sorting (field:asc / field:desc) */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchRelativeParams contains all the parameters to send to the API endpoint
for the search relative operation. Typically these are written to a http.Request.
func NewSearchRelativeParams ¶
func NewSearchRelativeParams() *SearchRelativeParams
NewSearchRelativeParams creates a new SearchRelativeParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSearchRelativeParamsWithContext ¶
func NewSearchRelativeParamsWithContext(ctx context.Context) *SearchRelativeParams
NewSearchRelativeParamsWithContext creates a new SearchRelativeParams object with the ability to set a context for a request.
func NewSearchRelativeParamsWithHTTPClient ¶
func NewSearchRelativeParamsWithHTTPClient(client *http.Client) *SearchRelativeParams
NewSearchRelativeParamsWithHTTPClient creates a new SearchRelativeParams object with the ability to set a custom HTTPClient for a request.
func NewSearchRelativeParamsWithTimeout ¶
func NewSearchRelativeParamsWithTimeout(timeout time.Duration) *SearchRelativeParams
NewSearchRelativeParamsWithTimeout creates a new SearchRelativeParams object with the ability to set a timeout on a request.
func (*SearchRelativeParams) SetContext ¶
func (o *SearchRelativeParams) SetContext(ctx context.Context)
SetContext adds the context to the search relative params
func (*SearchRelativeParams) SetDecorate ¶
func (o *SearchRelativeParams) SetDecorate(decorate *bool)
SetDecorate adds the decorate to the search relative params
func (*SearchRelativeParams) SetDefaults ¶
func (o *SearchRelativeParams) SetDefaults()
SetDefaults hydrates default values in the search relative params (not the query body).
All values with no default are reset to their zero value.
func (*SearchRelativeParams) SetFields ¶
func (o *SearchRelativeParams) SetFields(fields *string)
SetFields adds the fields to the search relative params
func (*SearchRelativeParams) SetFilter ¶
func (o *SearchRelativeParams) SetFilter(filter *string)
SetFilter adds the filter to the search relative params
func (*SearchRelativeParams) SetHTTPClient ¶
func (o *SearchRelativeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search relative params
func (*SearchRelativeParams) SetLimit ¶
func (o *SearchRelativeParams) SetLimit(limit *int64)
SetLimit adds the limit to the search relative params
func (*SearchRelativeParams) SetOffset ¶
func (o *SearchRelativeParams) SetOffset(offset *int64)
SetOffset adds the offset to the search relative params
func (*SearchRelativeParams) SetQuery ¶
func (o *SearchRelativeParams) SetQuery(query string)
SetQuery adds the query to the search relative params
func (*SearchRelativeParams) SetRange ¶
func (o *SearchRelativeParams) SetRange(rangeVar int64)
SetRange adds the range to the search relative params
func (*SearchRelativeParams) SetSort ¶
func (o *SearchRelativeParams) SetSort(sort *string)
SetSort adds the sort to the search relative params
func (*SearchRelativeParams) SetTimeout ¶
func (o *SearchRelativeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search relative params
func (*SearchRelativeParams) WithContext ¶
func (o *SearchRelativeParams) WithContext(ctx context.Context) *SearchRelativeParams
WithContext adds the context to the search relative params
func (*SearchRelativeParams) WithDecorate ¶
func (o *SearchRelativeParams) WithDecorate(decorate *bool) *SearchRelativeParams
WithDecorate adds the decorate to the search relative params
func (*SearchRelativeParams) WithDefaults ¶
func (o *SearchRelativeParams) WithDefaults() *SearchRelativeParams
WithDefaults hydrates default values in the search relative params (not the query body).
All values with no default are reset to their zero value.
func (*SearchRelativeParams) WithFields ¶
func (o *SearchRelativeParams) WithFields(fields *string) *SearchRelativeParams
WithFields adds the fields to the search relative params
func (*SearchRelativeParams) WithFilter ¶
func (o *SearchRelativeParams) WithFilter(filter *string) *SearchRelativeParams
WithFilter adds the filter to the search relative params
func (*SearchRelativeParams) WithHTTPClient ¶
func (o *SearchRelativeParams) WithHTTPClient(client *http.Client) *SearchRelativeParams
WithHTTPClient adds the HTTPClient to the search relative params
func (*SearchRelativeParams) WithLimit ¶
func (o *SearchRelativeParams) WithLimit(limit *int64) *SearchRelativeParams
WithLimit adds the limit to the search relative params
func (*SearchRelativeParams) WithOffset ¶
func (o *SearchRelativeParams) WithOffset(offset *int64) *SearchRelativeParams
WithOffset adds the offset to the search relative params
func (*SearchRelativeParams) WithQuery ¶
func (o *SearchRelativeParams) WithQuery(query string) *SearchRelativeParams
WithQuery adds the query to the search relative params
func (*SearchRelativeParams) WithRange ¶
func (o *SearchRelativeParams) WithRange(rangeVar int64) *SearchRelativeParams
WithRange adds the rangeVar to the search relative params
func (*SearchRelativeParams) WithSort ¶
func (o *SearchRelativeParams) WithSort(sort *string) *SearchRelativeParams
WithSort adds the sort to the search relative params
func (*SearchRelativeParams) WithTimeout ¶
func (o *SearchRelativeParams) WithTimeout(timeout time.Duration) *SearchRelativeParams
WithTimeout adds the timeout to the search relative params
func (*SearchRelativeParams) WriteToRequest ¶
func (o *SearchRelativeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchRelativeReader ¶
type SearchRelativeReader struct {
// contains filtered or unexported fields
}
SearchRelativeReader is a Reader for the SearchRelative structure.
func (*SearchRelativeReader) ReadResponse ¶
func (o *SearchRelativeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.