Documentation ¶
Overview ¶
Retrieves a watch by its ID.
Index ¶
- Variables
- type GetWatch
- func (r GetWatch) Do(ctx context.Context) (*http.Response, error)
- func (r *GetWatch) Header(key, value string) *GetWatch
- func (r *GetWatch) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *GetWatch) Id(v string) *GetWatch
- func (r GetWatch) IsSuccess(ctx context.Context) (bool, error)
- type NewGetWatch
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 GetWatch ¶
type GetWatch struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *GetWatch
Retrieves a watch by its ID.
https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html
func (*GetWatch) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewGetWatch ¶
NewGetWatch type alias for index.
func NewGetWatchFunc ¶
func NewGetWatchFunc(tp elastictransport.Interface) NewGetWatch
NewGetWatchFunc returns a new instance of GetWatch 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.