Documentation ¶
Overview ¶
Returns a list of the built-in patterns.
Index ¶
- Variables
- type NewProcessorGrok
- type ProcessorGrok
- func (r ProcessorGrok) Do(ctx context.Context) (*Response, error)
- func (r *ProcessorGrok) Header(key, value string) *ProcessorGrok
- func (r *ProcessorGrok) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r ProcessorGrok) IsSuccess(ctx context.Context) (bool, error)
- func (r ProcessorGrok) Perform(ctx context.Context) (*http.Response, error)
- type Response
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type NewProcessorGrok ¶
type NewProcessorGrok func() *ProcessorGrok
NewProcessorGrok type alias for index.
func NewProcessorGrokFunc ¶
func NewProcessorGrokFunc(tp elastictransport.Interface) NewProcessorGrok
NewProcessorGrokFunc returns a new instance of ProcessorGrok with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type ProcessorGrok ¶
type ProcessorGrok struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *ProcessorGrok
Returns a list of the built-in patterns.
https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/grok-processor.html
func (ProcessorGrok) Do ¶
func (r ProcessorGrok) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a processorgrok.Response
func (*ProcessorGrok) Header ¶
func (r *ProcessorGrok) Header(key, value string) *ProcessorGrok
Header set a key, value pair in the ProcessorGrok headers map.
func (*ProcessorGrok) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.