Documentation ¶
Overview ¶
Removes a watch from Watcher.
Index ¶
- Variables
- type DeleteWatch
- func (r DeleteWatch) Do(ctx context.Context) (*Response, error)
- func (r *DeleteWatch) Header(key, value string) *DeleteWatch
- func (r *DeleteWatch) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *DeleteWatch) Id(v string) *DeleteWatch
- func (r DeleteWatch) IsSuccess(ctx context.Context) (bool, error)
- func (r DeleteWatch) Perform(ctx context.Context) (*http.Response, error)
- type NewDeleteWatch
- 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 DeleteWatch ¶
type DeleteWatch struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *DeleteWatch
Removes a watch from Watcher.
https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html
func (DeleteWatch) Do ¶
func (r DeleteWatch) Do(ctx context.Context) (*Response, error)
Do runs the request through the transport, handle the response and returns a deletewatch.Response
func (*DeleteWatch) Header ¶
func (r *DeleteWatch) Header(key, value string) *DeleteWatch
Header set a key, value pair in the DeleteWatch headers map.
func (*DeleteWatch) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewDeleteWatch ¶
type NewDeleteWatch func(id string) *DeleteWatch
NewDeleteWatch type alias for index.
func NewDeleteWatchFunc ¶
func NewDeleteWatchFunc(tp elastictransport.Interface) NewDeleteWatch
NewDeleteWatchFunc returns a new instance of DeleteWatch with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.