decorators

package
v0.0.0-...-bd94565 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 decorators API

func (*Client) SearchAbsolute

func (a *Client) SearchAbsolute(params *SearchAbsoluteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchAbsoluteOK, error)

SearchAbsolute messages search with absolute timerange

Search for messages using an absolute timerange, specified as from/to with format yyyy-MM-ddTHH:mm:ss.SSSZ (e.g. 2014-01-23T15:34:49.000Z) or yyyy-MM-dd HH:mm:ss.

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 {
	SearchAbsolute(params *SearchAbsoluteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchAbsoluteOK, 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 decorators API client.

type SearchAbsoluteBadRequest

type SearchAbsoluteBadRequest struct {
}
SearchAbsoluteBadRequest describes a response with status code 400, with default header values.

Invalid timerange parameters provided.

func NewSearchAbsoluteBadRequest

func NewSearchAbsoluteBadRequest() *SearchAbsoluteBadRequest

NewSearchAbsoluteBadRequest creates a SearchAbsoluteBadRequest with default headers values

func (*SearchAbsoluteBadRequest) Error

func (o *SearchAbsoluteBadRequest) Error() string

type SearchAbsoluteOK

type SearchAbsoluteOK struct {
	Payload *models.SearchResponse
}
SearchAbsoluteOK describes a response with status code 200, with default header values.

No response was specified

func NewSearchAbsoluteOK

func NewSearchAbsoluteOK() *SearchAbsoluteOK

NewSearchAbsoluteOK creates a SearchAbsoluteOK with default headers values

func (*SearchAbsoluteOK) Error

func (o *SearchAbsoluteOK) Error() string

func (*SearchAbsoluteOK) GetPayload

func (o *SearchAbsoluteOK) GetPayload() *models.SearchResponse

type SearchAbsoluteParams

type SearchAbsoluteParams 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

	/* From.

	   Timerange start. See description for date format
	*/
	From string

	/* Limit.

	   Maximum number of messages to return.
	*/
	Limit *int64

	/* Offset.

	   Offset
	*/
	Offset *int64

	/* Query.

	   Query (Lucene syntax)
	*/
	Query string

	/* Sort.

	   Sorting (field:asc / field:desc)
	*/
	Sort *string

	/* To.

	   Timerange end. See description for date format
	*/
	To string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SearchAbsoluteParams contains all the parameters to send to the API endpoint

for the search absolute operation.

Typically these are written to a http.Request.

func NewSearchAbsoluteParams

func NewSearchAbsoluteParams() *SearchAbsoluteParams

NewSearchAbsoluteParams creates a new SearchAbsoluteParams 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 NewSearchAbsoluteParamsWithContext

func NewSearchAbsoluteParamsWithContext(ctx context.Context) *SearchAbsoluteParams

NewSearchAbsoluteParamsWithContext creates a new SearchAbsoluteParams object with the ability to set a context for a request.

func NewSearchAbsoluteParamsWithHTTPClient

func NewSearchAbsoluteParamsWithHTTPClient(client *http.Client) *SearchAbsoluteParams

NewSearchAbsoluteParamsWithHTTPClient creates a new SearchAbsoluteParams object with the ability to set a custom HTTPClient for a request.

func NewSearchAbsoluteParamsWithTimeout

func NewSearchAbsoluteParamsWithTimeout(timeout time.Duration) *SearchAbsoluteParams

NewSearchAbsoluteParamsWithTimeout creates a new SearchAbsoluteParams object with the ability to set a timeout on a request.

func (*SearchAbsoluteParams) SetContext

func (o *SearchAbsoluteParams) SetContext(ctx context.Context)

SetContext adds the context to the search absolute params

func (*SearchAbsoluteParams) SetDecorate

func (o *SearchAbsoluteParams) SetDecorate(decorate *bool)

SetDecorate adds the decorate to the search absolute params

func (*SearchAbsoluteParams) SetDefaults

func (o *SearchAbsoluteParams) SetDefaults()

SetDefaults hydrates default values in the search absolute params (not the query body).

All values with no default are reset to their zero value.

func (*SearchAbsoluteParams) SetFields

func (o *SearchAbsoluteParams) SetFields(fields *string)

SetFields adds the fields to the search absolute params

func (*SearchAbsoluteParams) SetFilter

func (o *SearchAbsoluteParams) SetFilter(filter *string)

SetFilter adds the filter to the search absolute params

func (*SearchAbsoluteParams) SetFrom

func (o *SearchAbsoluteParams) SetFrom(from string)

SetFrom adds the from to the search absolute params

func (*SearchAbsoluteParams) SetHTTPClient

func (o *SearchAbsoluteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the search absolute params

func (*SearchAbsoluteParams) SetLimit

func (o *SearchAbsoluteParams) SetLimit(limit *int64)

SetLimit adds the limit to the search absolute params

func (*SearchAbsoluteParams) SetOffset

func (o *SearchAbsoluteParams) SetOffset(offset *int64)

SetOffset adds the offset to the search absolute params

func (*SearchAbsoluteParams) SetQuery

func (o *SearchAbsoluteParams) SetQuery(query string)

SetQuery adds the query to the search absolute params

func (*SearchAbsoluteParams) SetSort

func (o *SearchAbsoluteParams) SetSort(sort *string)

SetSort adds the sort to the search absolute params

func (*SearchAbsoluteParams) SetTimeout

func (o *SearchAbsoluteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the search absolute params

func (*SearchAbsoluteParams) SetTo

func (o *SearchAbsoluteParams) SetTo(to string)

SetTo adds the to to the search absolute params

func (*SearchAbsoluteParams) WithContext

WithContext adds the context to the search absolute params

func (*SearchAbsoluteParams) WithDecorate

func (o *SearchAbsoluteParams) WithDecorate(decorate *bool) *SearchAbsoluteParams

WithDecorate adds the decorate to the search absolute params

func (*SearchAbsoluteParams) WithDefaults

func (o *SearchAbsoluteParams) WithDefaults() *SearchAbsoluteParams

WithDefaults hydrates default values in the search absolute params (not the query body).

All values with no default are reset to their zero value.

func (*SearchAbsoluteParams) WithFields

func (o *SearchAbsoluteParams) WithFields(fields *string) *SearchAbsoluteParams

WithFields adds the fields to the search absolute params

func (*SearchAbsoluteParams) WithFilter

func (o *SearchAbsoluteParams) WithFilter(filter *string) *SearchAbsoluteParams

WithFilter adds the filter to the search absolute params

func (*SearchAbsoluteParams) WithFrom

WithFrom adds the from to the search absolute params

func (*SearchAbsoluteParams) WithHTTPClient

func (o *SearchAbsoluteParams) WithHTTPClient(client *http.Client) *SearchAbsoluteParams

WithHTTPClient adds the HTTPClient to the search absolute params

func (*SearchAbsoluteParams) WithLimit

func (o *SearchAbsoluteParams) WithLimit(limit *int64) *SearchAbsoluteParams

WithLimit adds the limit to the search absolute params

func (*SearchAbsoluteParams) WithOffset

func (o *SearchAbsoluteParams) WithOffset(offset *int64) *SearchAbsoluteParams

WithOffset adds the offset to the search absolute params

func (*SearchAbsoluteParams) WithQuery

func (o *SearchAbsoluteParams) WithQuery(query string) *SearchAbsoluteParams

WithQuery adds the query to the search absolute params

func (*SearchAbsoluteParams) WithSort

func (o *SearchAbsoluteParams) WithSort(sort *string) *SearchAbsoluteParams

WithSort adds the sort to the search absolute params

func (*SearchAbsoluteParams) WithTimeout

func (o *SearchAbsoluteParams) WithTimeout(timeout time.Duration) *SearchAbsoluteParams

WithTimeout adds the timeout to the search absolute params

func (*SearchAbsoluteParams) WithTo

WithTo adds the to to the search absolute params

func (*SearchAbsoluteParams) WriteToRequest

func (o *SearchAbsoluteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SearchAbsoluteReader

type SearchAbsoluteReader struct {
	// contains filtered or unexported fields
}

SearchAbsoluteReader is a Reader for the SearchAbsolute structure.

func (*SearchAbsoluteReader) ReadResponse

func (o *SearchAbsoluteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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