Documentation ¶
Index ¶
- type AnalyzeNotFound
- type AnalyzeOK
- type AnalyzeParams
- func (o *AnalyzeParams) SetAnalyzer(analyzer *string)
- func (o *AnalyzeParams) SetContext(ctx context.Context)
- func (o *AnalyzeParams) SetHTTPClient(client *http.Client)
- func (o *AnalyzeParams) SetIndex(index string)
- func (o *AnalyzeParams) SetString(string string)
- func (o *AnalyzeParams) SetTimeout(timeout time.Duration)
- func (o *AnalyzeParams) WithAnalyzer(analyzer *string) *AnalyzeParams
- func (o *AnalyzeParams) WithContext(ctx context.Context) *AnalyzeParams
- func (o *AnalyzeParams) WithHTTPClient(client *http.Client) *AnalyzeParams
- func (o *AnalyzeParams) WithIndex(index string) *AnalyzeParams
- func (o *AnalyzeParams) WithString(string string) *AnalyzeParams
- func (o *AnalyzeParams) WithTimeout(timeout time.Duration) *AnalyzeParams
- func (o *AnalyzeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AnalyzeReader
- type Client
- type SearchNotFound
- type SearchOK
- type SearchOKBody
- type SearchParams
- func (o *SearchParams) SetContext(ctx context.Context)
- func (o *SearchParams) SetHTTPClient(client *http.Client)
- func (o *SearchParams) SetIndex(index string)
- func (o *SearchParams) SetMessageID(messageID string)
- func (o *SearchParams) SetTimeout(timeout time.Duration)
- func (o *SearchParams) WithContext(ctx context.Context) *SearchParams
- func (o *SearchParams) WithHTTPClient(client *http.Client) *SearchParams
- func (o *SearchParams) WithIndex(index string) *SearchParams
- func (o *SearchParams) WithMessageID(messageID string) *SearchParams
- func (o *SearchParams) WithTimeout(timeout time.Duration) *SearchParams
- func (o *SearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzeNotFound ¶
type AnalyzeNotFound struct { }
AnalyzeNotFound handles this case with default header values.
Specified index does not exist.
func NewAnalyzeNotFound ¶
func NewAnalyzeNotFound() *AnalyzeNotFound
NewAnalyzeNotFound creates a AnalyzeNotFound with default headers values
func (*AnalyzeNotFound) Error ¶
func (o *AnalyzeNotFound) Error() string
type AnalyzeOK ¶
type AnalyzeOK struct {
Payload *models.MessageTokens
}
AnalyzeOK handles this case with default header values.
No response was specified
func NewAnalyzeOK ¶
func NewAnalyzeOK() *AnalyzeOK
NewAnalyzeOK creates a AnalyzeOK with default headers values
type AnalyzeParams ¶
type AnalyzeParams struct { /*Analyzer The analyzer to use. */ Analyzer *string /*Index The index the message containing the string is stored in. */ Index string /*String The string to analyze. */ String string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AnalyzeParams contains all the parameters to send to the API endpoint for the analyze operation typically these are written to a http.Request
func NewAnalyzeParams ¶
func NewAnalyzeParams() *AnalyzeParams
NewAnalyzeParams creates a new AnalyzeParams object with the default values initialized.
func NewAnalyzeParamsWithContext ¶
func NewAnalyzeParamsWithContext(ctx context.Context) *AnalyzeParams
NewAnalyzeParamsWithContext creates a new AnalyzeParams object with the default values initialized, and the ability to set a context for a request
func NewAnalyzeParamsWithHTTPClient ¶
func NewAnalyzeParamsWithHTTPClient(client *http.Client) *AnalyzeParams
NewAnalyzeParamsWithHTTPClient creates a new AnalyzeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAnalyzeParamsWithTimeout ¶
func NewAnalyzeParamsWithTimeout(timeout time.Duration) *AnalyzeParams
NewAnalyzeParamsWithTimeout creates a new AnalyzeParams object with the default values initialized, and the ability to set a timeout on a request
func (*AnalyzeParams) SetAnalyzer ¶
func (o *AnalyzeParams) SetAnalyzer(analyzer *string)
SetAnalyzer adds the analyzer to the analyze params
func (*AnalyzeParams) SetContext ¶
func (o *AnalyzeParams) SetContext(ctx context.Context)
SetContext adds the context to the analyze params
func (*AnalyzeParams) SetHTTPClient ¶
func (o *AnalyzeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the analyze params
func (*AnalyzeParams) SetIndex ¶
func (o *AnalyzeParams) SetIndex(index string)
SetIndex adds the index to the analyze params
func (*AnalyzeParams) SetString ¶
func (o *AnalyzeParams) SetString(string string)
SetString adds the string to the analyze params
func (*AnalyzeParams) SetTimeout ¶
func (o *AnalyzeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the analyze params
func (*AnalyzeParams) WithAnalyzer ¶
func (o *AnalyzeParams) WithAnalyzer(analyzer *string) *AnalyzeParams
WithAnalyzer adds the analyzer to the analyze params
func (*AnalyzeParams) WithContext ¶
func (o *AnalyzeParams) WithContext(ctx context.Context) *AnalyzeParams
WithContext adds the context to the analyze params
func (*AnalyzeParams) WithHTTPClient ¶
func (o *AnalyzeParams) WithHTTPClient(client *http.Client) *AnalyzeParams
WithHTTPClient adds the HTTPClient to the analyze params
func (*AnalyzeParams) WithIndex ¶
func (o *AnalyzeParams) WithIndex(index string) *AnalyzeParams
WithIndex adds the index to the analyze params
func (*AnalyzeParams) WithString ¶
func (o *AnalyzeParams) WithString(string string) *AnalyzeParams
WithString adds the string to the analyze params
func (*AnalyzeParams) WithTimeout ¶
func (o *AnalyzeParams) WithTimeout(timeout time.Duration) *AnalyzeParams
WithTimeout adds the timeout to the analyze params
func (*AnalyzeParams) WriteToRequest ¶
func (o *AnalyzeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AnalyzeReader ¶
type AnalyzeReader struct {
// contains filtered or unexported fields
}
AnalyzeReader is a Reader for the Analyze structure.
func (*AnalyzeReader) ReadResponse ¶
func (o *AnalyzeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for plugins org graylog plugins collector API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new plugins org graylog plugins collector API client.
func (*Client) Analyze ¶
func (a *Client) Analyze(params *AnalyzeParams, authInfo runtime.ClientAuthInfoWriter) (*AnalyzeOK, error)
Analyze analyzes a message string
Returns what tokens/terms a message string (message or full_message) is split to.
func (*Client) Search ¶
func (a *Client) Search(params *SearchParams, authInfo runtime.ClientAuthInfoWriter) (*SearchOK, error)
Search gets a single message
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type SearchNotFound ¶
type SearchNotFound struct { }
SearchNotFound handles this case with default header values.
Message does not exist.
func NewSearchNotFound ¶
func NewSearchNotFound() *SearchNotFound
NewSearchNotFound creates a SearchNotFound with default headers values
func (*SearchNotFound) Error ¶
func (o *SearchNotFound) Error() string
type SearchOK ¶
type SearchOK struct {
Payload SearchOKBody
}
SearchOK handles this case with default header values.
No response was specified
func NewSearchOK ¶
func NewSearchOK() *SearchOK
NewSearchOK creates a SearchOK with default headers values
type SearchOKBody ¶
type SearchOKBody interface{}
SearchOKBody search o k body swagger:model SearchOKBody
type SearchParams ¶
type SearchParams struct { /*Index The index this message is stored in. */ Index string /*MessageID*/ MessageID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchParams contains all the parameters to send to the API endpoint for the search operation typically these are written to a http.Request
func NewSearchParams ¶
func NewSearchParams() *SearchParams
NewSearchParams creates a new SearchParams object with the default values initialized.
func NewSearchParamsWithContext ¶
func NewSearchParamsWithContext(ctx context.Context) *SearchParams
NewSearchParamsWithContext creates a new SearchParams object with the default values initialized, and the ability to set a context for a request
func NewSearchParamsWithHTTPClient ¶
func NewSearchParamsWithHTTPClient(client *http.Client) *SearchParams
NewSearchParamsWithHTTPClient creates a new SearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSearchParamsWithTimeout ¶
func NewSearchParamsWithTimeout(timeout time.Duration) *SearchParams
NewSearchParamsWithTimeout creates a new SearchParams object with the default values initialized, and the ability to set a timeout on a request
func (*SearchParams) SetContext ¶
func (o *SearchParams) SetContext(ctx context.Context)
SetContext adds the context to the search params
func (*SearchParams) SetHTTPClient ¶
func (o *SearchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search params
func (*SearchParams) SetIndex ¶
func (o *SearchParams) SetIndex(index string)
SetIndex adds the index to the search params
func (*SearchParams) SetMessageID ¶
func (o *SearchParams) SetMessageID(messageID string)
SetMessageID adds the messageId to the search params
func (*SearchParams) SetTimeout ¶
func (o *SearchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search params
func (*SearchParams) WithContext ¶
func (o *SearchParams) WithContext(ctx context.Context) *SearchParams
WithContext adds the context to the search params
func (*SearchParams) WithHTTPClient ¶
func (o *SearchParams) WithHTTPClient(client *http.Client) *SearchParams
WithHTTPClient adds the HTTPClient to the search params
func (*SearchParams) WithIndex ¶
func (o *SearchParams) WithIndex(index string) *SearchParams
WithIndex adds the index to the search params
func (*SearchParams) WithMessageID ¶
func (o *SearchParams) WithMessageID(messageID string) *SearchParams
WithMessageID adds the messageID to the search params
func (*SearchParams) WithTimeout ¶
func (o *SearchParams) WithTimeout(timeout time.Duration) *SearchParams
WithTimeout adds the timeout to the search params
func (*SearchParams) WriteToRequest ¶
func (o *SearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchReader ¶
type SearchReader struct {
// contains filtered or unexported fields
}
SearchReader is a Reader for the Search structure.
func (*SearchReader) ReadResponse ¶
func (o *SearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.