Documentation ¶
Overview ¶
Returns defaults and limits used by machine learning.
Index ¶
- Variables
- type Info
- func (r Info) Do(ctx context.Context) (*Response, error)
- func (r *Info) Header(key, value string) *Info
- func (r *Info) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r Info) IsSuccess(ctx context.Context) (bool, error)
- func (r Info) Perform(ctx context.Context) (*http.Response, error)
- type NewInfo
- 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 Info ¶
type Info struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Info
Returns defaults and limits used by machine learning.
https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html
func (Info) Do ¶
Do runs the request through the transport, handle the response and returns a info.Response
func (*Info) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewInfo ¶
type NewInfo func() *Info
NewInfo type alias for index.
func NewInfoFunc ¶
func NewInfoFunc(tp elastictransport.Interface) NewInfo
NewInfoFunc returns a new instance of Info 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.