Documentation ¶
Overview ¶
Removes a watch from Watcher.
Index ¶
- Variables
- type DeleteWatch
- func (r DeleteWatch) Do(ctx context.Context) (*http.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)
- type NewDeleteWatch
Constants ¶
This section is empty.
Variables ¶
View Source
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) 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.
Click to show internal directories.
Click to hide internal directories.