Documentation ¶
Overview ¶
Returns information about the master node.
Index ¶
- Variables
- type Master
- func (r Master) Do(providedCtx context.Context) (Response, error)
- func (r *Master) Header(key, value string) *Master
- func (r *Master) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r Master) IsSuccess(providedCtx context.Context) (bool, error)
- func (r Master) Perform(providedCtx context.Context) (*http.Response, error)
- type NewMaster
- type Response
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 Master ¶
type Master struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Master
Returns information about the master node.
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html
func (Master) Do ¶
Do runs the request through the transport, handle the response and returns a master.Response
func (*Master) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewMaster ¶
type NewMaster func() *Master
NewMaster type alias for index.
func NewMasterFunc ¶
func NewMasterFunc(tp elastictransport.Interface) NewMaster
NewMasterFunc returns a new instance of Master with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.
type Response ¶ added in v8.7.0
type Response []types.MasterRecord
Click to show internal directories.
Click to hide internal directories.