Documentation ¶
Index ¶
- Constants
- type DeleteIndexDocID
- type DeleteIndexDocIDBadRequest
- func (o *DeleteIndexDocIDBadRequest) SetPayload(payload *DeleteIndexDocIDBadRequestBody)
- func (o *DeleteIndexDocIDBadRequest) WithPayload(payload *DeleteIndexDocIDBadRequestBody) *DeleteIndexDocIDBadRequest
- func (o *DeleteIndexDocIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteIndexDocIDBadRequestBody
- type DeleteIndexDocIDHandler
- type DeleteIndexDocIDHandlerFunc
- type DeleteIndexDocIDNotFound
- type DeleteIndexDocIDNotFoundBody
- type DeleteIndexDocIDOK
- type DeleteIndexDocIDParams
- type DeleteIndexDocIDURL
- func (o *DeleteIndexDocIDURL) Build() (*url.URL, error)
- func (o *DeleteIndexDocIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteIndexDocIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteIndexDocIDURL) SetBasePath(bp string)
- func (o *DeleteIndexDocIDURL) String() string
- func (o *DeleteIndexDocIDURL) StringFull(scheme, host string) string
- func (o *DeleteIndexDocIDURL) WithBasePath(bp string) *DeleteIndexDocIDURL
- type GetIndexDocID
- type GetIndexDocIDBadRequest
- type GetIndexDocIDBadRequestBody
- type GetIndexDocIDHandler
- type GetIndexDocIDHandlerFunc
- type GetIndexDocIDNotFound
- type GetIndexDocIDNotFoundBody
- type GetIndexDocIDOK
- type GetIndexDocIDOKBody
- type GetIndexDocIDParams
- type GetIndexDocIDURL
- func (o *GetIndexDocIDURL) Build() (*url.URL, error)
- func (o *GetIndexDocIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetIndexDocIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetIndexDocIDURL) SetBasePath(bp string)
- func (o *GetIndexDocIDURL) String() string
- func (o *GetIndexDocIDURL) StringFull(scheme, host string) string
- func (o *GetIndexDocIDURL) WithBasePath(bp string) *GetIndexDocIDURL
- type GetIndexSearch
- type GetIndexSearchBadRequest
- type GetIndexSearchBadRequestBody
- type GetIndexSearchBody
- type GetIndexSearchHandler
- type GetIndexSearchHandlerFunc
- type GetIndexSearchInternalServerError
- func (o *GetIndexSearchInternalServerError) SetPayload(payload *GetIndexSearchInternalServerErrorBody)
- func (o *GetIndexSearchInternalServerError) WithPayload(payload *GetIndexSearchInternalServerErrorBody) *GetIndexSearchInternalServerError
- func (o *GetIndexSearchInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetIndexSearchInternalServerErrorBody
- type GetIndexSearchNotFound
- type GetIndexSearchNotFoundBody
- type GetIndexSearchOK
- type GetIndexSearchOKBody
- type GetIndexSearchOKBodyHits
- type GetIndexSearchOKBodyHitsHitsItems0
- type GetIndexSearchOKBodyHitsTotal
- type GetIndexSearchOKBodyShards
- type GetIndexSearchParams
- type GetIndexSearchParamsBodyQuery
- type GetIndexSearchParamsBodyQueryBool
- type GetIndexSearchParamsBodyQueryBoolFilter
- type GetIndexSearchParamsBodyQueryBoolFilterTerms
- type GetIndexSearchParamsBodyQueryBoolMust
- type GetIndexSearchParamsBodyQueryBoolMustMatchPhrase
- type GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent
- func (o *GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent) MarshalBinary() ([]byte, error)
- func (o *GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent) UnmarshalBinary(b []byte) error
- func (o *GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent) Validate(formats strfmt.Registry) error
- type GetIndexSearchURL
- func (o *GetIndexSearchURL) Build() (*url.URL, error)
- func (o *GetIndexSearchURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetIndexSearchURL) Must(u *url.URL, err error) *url.URL
- func (o *GetIndexSearchURL) SetBasePath(bp string)
- func (o *GetIndexSearchURL) String() string
- func (o *GetIndexSearchURL) StringFull(scheme, host string) string
- func (o *GetIndexSearchURL) WithBasePath(bp string) *GetIndexSearchURL
- type GetIndexSourceID
- type GetIndexSourceIDBadRequest
- func (o *GetIndexSourceIDBadRequest) SetPayload(payload *GetIndexSourceIDBadRequestBody)
- func (o *GetIndexSourceIDBadRequest) WithPayload(payload *GetIndexSourceIDBadRequestBody) *GetIndexSourceIDBadRequest
- func (o *GetIndexSourceIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetIndexSourceIDBadRequestBody
- type GetIndexSourceIDHandler
- type GetIndexSourceIDHandlerFunc
- type GetIndexSourceIDNotFound
- type GetIndexSourceIDNotFoundBody
- type GetIndexSourceIDOK
- type GetIndexSourceIDParams
- type GetIndexSourceIDURL
- func (o *GetIndexSourceIDURL) Build() (*url.URL, error)
- func (o *GetIndexSourceIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetIndexSourceIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetIndexSourceIDURL) SetBasePath(bp string)
- func (o *GetIndexSourceIDURL) String() string
- func (o *GetIndexSourceIDURL) StringFull(scheme, host string) string
- func (o *GetIndexSourceIDURL) WithBasePath(bp string) *GetIndexSourceIDURL
- type PostIndexDoc
- type PostIndexDocHandler
- type PostIndexDocHandlerFunc
- type PostIndexDocInternalServerError
- func (o *PostIndexDocInternalServerError) SetPayload(payload *PostIndexDocInternalServerErrorBody)
- func (o *PostIndexDocInternalServerError) WithPayload(payload *PostIndexDocInternalServerErrorBody) *PostIndexDocInternalServerError
- func (o *PostIndexDocInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostIndexDocInternalServerErrorBody
- type PostIndexDocNotFound
- type PostIndexDocNotFoundBody
- type PostIndexDocOK
- type PostIndexDocParams
- type PostIndexDocURL
- func (o *PostIndexDocURL) Build() (*url.URL, error)
- func (o *PostIndexDocURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostIndexDocURL) Must(u *url.URL, err error) *url.URL
- func (o *PostIndexDocURL) SetBasePath(bp string)
- func (o *PostIndexDocURL) String() string
- func (o *PostIndexDocURL) StringFull(scheme, host string) string
- func (o *PostIndexDocURL) WithBasePath(bp string) *PostIndexDocURL
- type PutIndexDocID
- type PutIndexDocIDBadRequest
- type PutIndexDocIDBadRequestBody
- type PutIndexDocIDHandler
- type PutIndexDocIDHandlerFunc
- type PutIndexDocIDNotFound
- type PutIndexDocIDNotFoundBody
- type PutIndexDocIDOK
- type PutIndexDocIDParams
- type PutIndexDocIDURL
- func (o *PutIndexDocIDURL) Build() (*url.URL, error)
- func (o *PutIndexDocIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutIndexDocIDURL) Must(u *url.URL, err error) *url.URL
- func (o *PutIndexDocIDURL) SetBasePath(bp string)
- func (o *PutIndexDocIDURL) String() string
- func (o *PutIndexDocIDURL) StringFull(scheme, host string) string
- func (o *PutIndexDocIDURL) WithBasePath(bp string) *PutIndexDocIDURL
- type WatertowerAPI
- func (o *WatertowerAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *WatertowerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *WatertowerAPI) Authorizer() runtime.Authorizer
- func (o *WatertowerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *WatertowerAPI) Context() *middleware.Context
- func (o *WatertowerAPI) DefaultConsumes() string
- func (o *WatertowerAPI) DefaultProduces() string
- func (o *WatertowerAPI) Formats() strfmt.Registry
- func (o *WatertowerAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *WatertowerAPI) Init()
- func (o *WatertowerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *WatertowerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *WatertowerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *WatertowerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *WatertowerAPI) Serve(builder middleware.Builder) http.Handler
- func (o *WatertowerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *WatertowerAPI) SetDefaultConsumes(mediaType string)
- func (o *WatertowerAPI) SetDefaultProduces(mediaType string)
- func (o *WatertowerAPI) SetSpec(spec *loads.Document)
- func (o *WatertowerAPI) Validate() error
Constants ¶
const DeleteIndexDocIDBadRequestCode int = 400
DeleteIndexDocIDBadRequestCode is the HTTP code returned for type DeleteIndexDocIDBadRequest
const DeleteIndexDocIDNotFoundCode int = 404
DeleteIndexDocIDNotFoundCode is the HTTP code returned for type DeleteIndexDocIDNotFound
const DeleteIndexDocIDOKCode int = 200
DeleteIndexDocIDOKCode is the HTTP code returned for type DeleteIndexDocIDOK
const GetIndexDocIDBadRequestCode int = 400
GetIndexDocIDBadRequestCode is the HTTP code returned for type GetIndexDocIDBadRequest
const GetIndexDocIDNotFoundCode int = 404
GetIndexDocIDNotFoundCode is the HTTP code returned for type GetIndexDocIDNotFound
const GetIndexDocIDOKCode int = 200
GetIndexDocIDOKCode is the HTTP code returned for type GetIndexDocIDOK
const GetIndexSearchBadRequestCode int = 400
GetIndexSearchBadRequestCode is the HTTP code returned for type GetIndexSearchBadRequest
const GetIndexSearchInternalServerErrorCode int = 500
GetIndexSearchInternalServerErrorCode is the HTTP code returned for type GetIndexSearchInternalServerError
const GetIndexSearchNotFoundCode int = 404
GetIndexSearchNotFoundCode is the HTTP code returned for type GetIndexSearchNotFound
const GetIndexSearchOKCode int = 200
GetIndexSearchOKCode is the HTTP code returned for type GetIndexSearchOK
const GetIndexSourceIDBadRequestCode int = 400
GetIndexSourceIDBadRequestCode is the HTTP code returned for type GetIndexSourceIDBadRequest
const GetIndexSourceIDNotFoundCode int = 404
GetIndexSourceIDNotFoundCode is the HTTP code returned for type GetIndexSourceIDNotFound
const GetIndexSourceIDOKCode int = 200
GetIndexSourceIDOKCode is the HTTP code returned for type GetIndexSourceIDOK
const PostIndexDocInternalServerErrorCode int = 500
PostIndexDocInternalServerErrorCode is the HTTP code returned for type PostIndexDocInternalServerError
const PostIndexDocNotFoundCode int = 404
PostIndexDocNotFoundCode is the HTTP code returned for type PostIndexDocNotFound
const PostIndexDocOKCode int = 200
PostIndexDocOKCode is the HTTP code returned for type PostIndexDocOK
const PutIndexDocIDBadRequestCode int = 400
PutIndexDocIDBadRequestCode is the HTTP code returned for type PutIndexDocIDBadRequest
const PutIndexDocIDNotFoundCode int = 404
PutIndexDocIDNotFoundCode is the HTTP code returned for type PutIndexDocIDNotFound
const PutIndexDocIDOKCode int = 200
PutIndexDocIDOKCode is the HTTP code returned for type PutIndexDocIDOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteIndexDocID ¶
type DeleteIndexDocID struct { Context *middleware.Context Handler DeleteIndexDocIDHandler }
DeleteIndexDocID swagger:route DELETE /{index}/_doc/{_id} deleteIndexDocId
You use DELETE to remove a document from an index. You must specify the index name and document ID.
func NewDeleteIndexDocID ¶
func NewDeleteIndexDocID(ctx *middleware.Context, handler DeleteIndexDocIDHandler) *DeleteIndexDocID
NewDeleteIndexDocID creates a new http.Handler for the delete index doc id operation
func (*DeleteIndexDocID) ServeHTTP ¶
func (o *DeleteIndexDocID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteIndexDocIDBadRequest ¶
type DeleteIndexDocIDBadRequest struct { /* In: Body */ Payload *DeleteIndexDocIDBadRequestBody `json:"body,omitempty"` }
DeleteIndexDocIDBadRequest Bad Request
swagger:response deleteIndexDocIdBadRequest
func NewDeleteIndexDocIDBadRequest ¶
func NewDeleteIndexDocIDBadRequest() *DeleteIndexDocIDBadRequest
NewDeleteIndexDocIDBadRequest creates DeleteIndexDocIDBadRequest with default headers values
func (*DeleteIndexDocIDBadRequest) SetPayload ¶
func (o *DeleteIndexDocIDBadRequest) SetPayload(payload *DeleteIndexDocIDBadRequestBody)
SetPayload sets the payload to the delete index doc Id bad request response
func (*DeleteIndexDocIDBadRequest) WithPayload ¶
func (o *DeleteIndexDocIDBadRequest) WithPayload(payload *DeleteIndexDocIDBadRequestBody) *DeleteIndexDocIDBadRequest
WithPayload adds the payload to the delete index doc Id bad request response
func (*DeleteIndexDocIDBadRequest) WriteResponse ¶
func (o *DeleteIndexDocIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteIndexDocIDBadRequestBody ¶
type DeleteIndexDocIDBadRequestBody struct { // message Message string `json:"message,omitempty"` }
DeleteIndexDocIDBadRequestBody delete index doc ID bad request body
swagger:model DeleteIndexDocIDBadRequestBody
func (*DeleteIndexDocIDBadRequestBody) MarshalBinary ¶
func (o *DeleteIndexDocIDBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteIndexDocIDBadRequestBody) UnmarshalBinary ¶
func (o *DeleteIndexDocIDBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteIndexDocIDHandler ¶
type DeleteIndexDocIDHandler interface {
Handle(DeleteIndexDocIDParams) middleware.Responder
}
DeleteIndexDocIDHandler interface for that can handle valid delete index doc id params
type DeleteIndexDocIDHandlerFunc ¶
type DeleteIndexDocIDHandlerFunc func(DeleteIndexDocIDParams) middleware.Responder
DeleteIndexDocIDHandlerFunc turns a function with the right signature into a delete index doc id handler
func (DeleteIndexDocIDHandlerFunc) Handle ¶
func (fn DeleteIndexDocIDHandlerFunc) Handle(params DeleteIndexDocIDParams) middleware.Responder
Handle executing the request and returning a response
type DeleteIndexDocIDNotFound ¶
type DeleteIndexDocIDNotFound struct { /* In: Body */ Payload *DeleteIndexDocIDNotFoundBody `json:"body,omitempty"` }
DeleteIndexDocIDNotFound Not Found
swagger:response deleteIndexDocIdNotFound
func NewDeleteIndexDocIDNotFound ¶
func NewDeleteIndexDocIDNotFound() *DeleteIndexDocIDNotFound
NewDeleteIndexDocIDNotFound creates DeleteIndexDocIDNotFound with default headers values
func (*DeleteIndexDocIDNotFound) SetPayload ¶
func (o *DeleteIndexDocIDNotFound) SetPayload(payload *DeleteIndexDocIDNotFoundBody)
SetPayload sets the payload to the delete index doc Id not found response
func (*DeleteIndexDocIDNotFound) WithPayload ¶
func (o *DeleteIndexDocIDNotFound) WithPayload(payload *DeleteIndexDocIDNotFoundBody) *DeleteIndexDocIDNotFound
WithPayload adds the payload to the delete index doc Id not found response
func (*DeleteIndexDocIDNotFound) WriteResponse ¶
func (o *DeleteIndexDocIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteIndexDocIDNotFoundBody ¶
type DeleteIndexDocIDNotFoundBody struct { // message Message string `json:"message,omitempty"` }
DeleteIndexDocIDNotFoundBody delete index doc ID not found body
swagger:model DeleteIndexDocIDNotFoundBody
func (*DeleteIndexDocIDNotFoundBody) MarshalBinary ¶
func (o *DeleteIndexDocIDNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteIndexDocIDNotFoundBody) UnmarshalBinary ¶
func (o *DeleteIndexDocIDNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteIndexDocIDOK ¶
type DeleteIndexDocIDOK struct { /* In: Body */ Payload *models.ModifyResponse `json:"body,omitempty"` }
DeleteIndexDocIDOK OK
swagger:response deleteIndexDocIdOK
func NewDeleteIndexDocIDOK ¶
func NewDeleteIndexDocIDOK() *DeleteIndexDocIDOK
NewDeleteIndexDocIDOK creates DeleteIndexDocIDOK with default headers values
func (*DeleteIndexDocIDOK) SetPayload ¶
func (o *DeleteIndexDocIDOK) SetPayload(payload *models.ModifyResponse)
SetPayload sets the payload to the delete index doc Id o k response
func (*DeleteIndexDocIDOK) WithPayload ¶
func (o *DeleteIndexDocIDOK) WithPayload(payload *models.ModifyResponse) *DeleteIndexDocIDOK
WithPayload adds the payload to the delete index doc Id o k response
func (*DeleteIndexDocIDOK) WriteResponse ¶
func (o *DeleteIndexDocIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteIndexDocIDParams ¶
type DeleteIndexDocIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Unique identifier of the document. Required: true In: path */ ID string /*Name of the index that contains the document. Required: true In: path */ Index string }
DeleteIndexDocIDParams contains all the bound params for the delete index doc id operation typically these are obtained from a http.Request
swagger:parameters delete-index-_doc-_id
func NewDeleteIndexDocIDParams ¶
func NewDeleteIndexDocIDParams() DeleteIndexDocIDParams
NewDeleteIndexDocIDParams creates a new DeleteIndexDocIDParams object no default values defined in spec.
func (*DeleteIndexDocIDParams) BindRequest ¶
func (o *DeleteIndexDocIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteIndexDocIDParams() beforehand.
type DeleteIndexDocIDURL ¶
type DeleteIndexDocIDURL struct { ID string Index string // contains filtered or unexported fields }
DeleteIndexDocIDURL generates an URL for the delete index doc id operation
func (*DeleteIndexDocIDURL) Build ¶
func (o *DeleteIndexDocIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteIndexDocIDURL) BuildFull ¶
func (o *DeleteIndexDocIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteIndexDocIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteIndexDocIDURL) SetBasePath ¶
func (o *DeleteIndexDocIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteIndexDocIDURL) String ¶
func (o *DeleteIndexDocIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteIndexDocIDURL) StringFull ¶
func (o *DeleteIndexDocIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteIndexDocIDURL) WithBasePath ¶
func (o *DeleteIndexDocIDURL) WithBasePath(bp string) *DeleteIndexDocIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetIndexDocID ¶
type GetIndexDocID struct { Context *middleware.Context Handler GetIndexDocIDHandler }
GetIndexDocID swagger:route GET /{index}/_doc/{_id} getIndexDocId
Your GET endpoint ¶
You use GET to retrieve a document and its source or stored fields from a particular index.
func NewGetIndexDocID ¶
func NewGetIndexDocID(ctx *middleware.Context, handler GetIndexDocIDHandler) *GetIndexDocID
NewGetIndexDocID creates a new http.Handler for the get index doc id operation
func (*GetIndexDocID) ServeHTTP ¶
func (o *GetIndexDocID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetIndexDocIDBadRequest ¶
type GetIndexDocIDBadRequest struct { /* In: Body */ Payload *GetIndexDocIDBadRequestBody `json:"body,omitempty"` }
GetIndexDocIDBadRequest Bad Request
swagger:response getIndexDocIdBadRequest
func NewGetIndexDocIDBadRequest ¶
func NewGetIndexDocIDBadRequest() *GetIndexDocIDBadRequest
NewGetIndexDocIDBadRequest creates GetIndexDocIDBadRequest with default headers values
func (*GetIndexDocIDBadRequest) SetPayload ¶
func (o *GetIndexDocIDBadRequest) SetPayload(payload *GetIndexDocIDBadRequestBody)
SetPayload sets the payload to the get index doc Id bad request response
func (*GetIndexDocIDBadRequest) WithPayload ¶
func (o *GetIndexDocIDBadRequest) WithPayload(payload *GetIndexDocIDBadRequestBody) *GetIndexDocIDBadRequest
WithPayload adds the payload to the get index doc Id bad request response
func (*GetIndexDocIDBadRequest) WriteResponse ¶
func (o *GetIndexDocIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexDocIDBadRequestBody ¶
type GetIndexDocIDBadRequestBody struct { // message Message string `json:"message,omitempty"` }
GetIndexDocIDBadRequestBody get index doc ID bad request body
swagger:model GetIndexDocIDBadRequestBody
func (*GetIndexDocIDBadRequestBody) MarshalBinary ¶
func (o *GetIndexDocIDBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexDocIDBadRequestBody) UnmarshalBinary ¶
func (o *GetIndexDocIDBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexDocIDHandler ¶
type GetIndexDocIDHandler interface {
Handle(GetIndexDocIDParams) middleware.Responder
}
GetIndexDocIDHandler interface for that can handle valid get index doc id params
type GetIndexDocIDHandlerFunc ¶
type GetIndexDocIDHandlerFunc func(GetIndexDocIDParams) middleware.Responder
GetIndexDocIDHandlerFunc turns a function with the right signature into a get index doc id handler
func (GetIndexDocIDHandlerFunc) Handle ¶
func (fn GetIndexDocIDHandlerFunc) Handle(params GetIndexDocIDParams) middleware.Responder
Handle executing the request and returning a response
type GetIndexDocIDNotFound ¶
type GetIndexDocIDNotFound struct { /* In: Body */ Payload *GetIndexDocIDNotFoundBody `json:"body,omitempty"` }
GetIndexDocIDNotFound Not Found
swagger:response getIndexDocIdNotFound
func NewGetIndexDocIDNotFound ¶
func NewGetIndexDocIDNotFound() *GetIndexDocIDNotFound
NewGetIndexDocIDNotFound creates GetIndexDocIDNotFound with default headers values
func (*GetIndexDocIDNotFound) SetPayload ¶
func (o *GetIndexDocIDNotFound) SetPayload(payload *GetIndexDocIDNotFoundBody)
SetPayload sets the payload to the get index doc Id not found response
func (*GetIndexDocIDNotFound) WithPayload ¶
func (o *GetIndexDocIDNotFound) WithPayload(payload *GetIndexDocIDNotFoundBody) *GetIndexDocIDNotFound
WithPayload adds the payload to the get index doc Id not found response
func (*GetIndexDocIDNotFound) WriteResponse ¶
func (o *GetIndexDocIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexDocIDNotFoundBody ¶
type GetIndexDocIDNotFoundBody struct { // id ID string `json:"_id,omitempty"` // index Index string `json:"_index,omitempty"` // primary term PrimaryTerm int64 `json:"_primary_term,omitempty"` // seq no SeqNo int64 `json:"_seq_no,omitempty"` // source Source interface{} `json:"_source,omitempty"` // type Type string `json:"_type,omitempty"` // version Version int64 `json:"_version,omitempty"` // found Found bool `json:"found,omitempty"` // message Message string `json:"message,omitempty"` }
GetIndexDocIDNotFoundBody get index doc ID not found body
swagger:model GetIndexDocIDNotFoundBody
func (*GetIndexDocIDNotFoundBody) MarshalBinary ¶
func (o *GetIndexDocIDNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexDocIDNotFoundBody) UnmarshalBinary ¶
func (o *GetIndexDocIDNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexDocIDOK ¶
type GetIndexDocIDOK struct { /* In: Body */ Payload *GetIndexDocIDOKBody `json:"body,omitempty"` }
GetIndexDocIDOK OK
swagger:response getIndexDocIdOK
func NewGetIndexDocIDOK ¶
func NewGetIndexDocIDOK() *GetIndexDocIDOK
NewGetIndexDocIDOK creates GetIndexDocIDOK with default headers values
func (*GetIndexDocIDOK) SetPayload ¶
func (o *GetIndexDocIDOK) SetPayload(payload *GetIndexDocIDOKBody)
SetPayload sets the payload to the get index doc Id o k response
func (*GetIndexDocIDOK) WithPayload ¶
func (o *GetIndexDocIDOK) WithPayload(payload *GetIndexDocIDOKBody) *GetIndexDocIDOK
WithPayload adds the payload to the get index doc Id o k response
func (*GetIndexDocIDOK) WriteResponse ¶
func (o *GetIndexDocIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexDocIDOKBody ¶
type GetIndexDocIDOKBody struct { // id ID string `json:"_id,omitempty"` // index Index string `json:"_index,omitempty"` // primary term PrimaryTerm int64 `json:"_primary_term,omitempty"` // seq no SeqNo int64 `json:"_seq_no,omitempty"` // source Source *models.Document `json:"_source,omitempty"` // type Type string `json:"_type,omitempty"` // version Version int64 `json:"_version,omitempty"` // found Found bool `json:"found,omitempty"` }
GetIndexDocIDOKBody get index doc ID o k body
swagger:model GetIndexDocIDOKBody
func (*GetIndexDocIDOKBody) MarshalBinary ¶
func (o *GetIndexDocIDOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexDocIDOKBody) UnmarshalBinary ¶
func (o *GetIndexDocIDOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexDocIDParams ¶
type GetIndexDocIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Unique identifier of the document. Required: true In: path */ ID string /*Name of the index that contains the document. Required: true In: path */ Index string }
GetIndexDocIDParams contains all the bound params for the get index doc id operation typically these are obtained from a http.Request
swagger:parameters get-index-_doc-_id
func NewGetIndexDocIDParams ¶
func NewGetIndexDocIDParams() GetIndexDocIDParams
NewGetIndexDocIDParams creates a new GetIndexDocIDParams object no default values defined in spec.
func (*GetIndexDocIDParams) BindRequest ¶
func (o *GetIndexDocIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetIndexDocIDParams() beforehand.
type GetIndexDocIDURL ¶
GetIndexDocIDURL generates an URL for the get index doc id operation
func (*GetIndexDocIDURL) Build ¶
func (o *GetIndexDocIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetIndexDocIDURL) BuildFull ¶
func (o *GetIndexDocIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetIndexDocIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetIndexDocIDURL) SetBasePath ¶
func (o *GetIndexDocIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetIndexDocIDURL) String ¶
func (o *GetIndexDocIDURL) String() string
String returns the string representation of the path with query string
func (*GetIndexDocIDURL) StringFull ¶
func (o *GetIndexDocIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetIndexDocIDURL) WithBasePath ¶
func (o *GetIndexDocIDURL) WithBasePath(bp string) *GetIndexDocIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetIndexSearch ¶
type GetIndexSearch struct { Context *middleware.Context Handler GetIndexSearchHandler }
GetIndexSearch swagger:route GET /{index}/_search getIndexSearch
Your GET endpoint
func NewGetIndexSearch ¶
func NewGetIndexSearch(ctx *middleware.Context, handler GetIndexSearchHandler) *GetIndexSearch
NewGetIndexSearch creates a new http.Handler for the get index search operation
func (*GetIndexSearch) ServeHTTP ¶
func (o *GetIndexSearch) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetIndexSearchBadRequest ¶
type GetIndexSearchBadRequest struct { /* In: Body */ Payload *GetIndexSearchBadRequestBody `json:"body,omitempty"` }
GetIndexSearchBadRequest Bad Request
swagger:response getIndexSearchBadRequest
func NewGetIndexSearchBadRequest ¶
func NewGetIndexSearchBadRequest() *GetIndexSearchBadRequest
NewGetIndexSearchBadRequest creates GetIndexSearchBadRequest with default headers values
func (*GetIndexSearchBadRequest) SetPayload ¶
func (o *GetIndexSearchBadRequest) SetPayload(payload *GetIndexSearchBadRequestBody)
SetPayload sets the payload to the get index search bad request response
func (*GetIndexSearchBadRequest) WithPayload ¶
func (o *GetIndexSearchBadRequest) WithPayload(payload *GetIndexSearchBadRequestBody) *GetIndexSearchBadRequest
WithPayload adds the payload to the get index search bad request response
func (*GetIndexSearchBadRequest) WriteResponse ¶
func (o *GetIndexSearchBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexSearchBadRequestBody ¶
type GetIndexSearchBadRequestBody struct { // message Message string `json:"message,omitempty"` }
GetIndexSearchBadRequestBody get index search bad request body
swagger:model GetIndexSearchBadRequestBody
func (*GetIndexSearchBadRequestBody) MarshalBinary ¶
func (o *GetIndexSearchBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchBadRequestBody) UnmarshalBinary ¶
func (o *GetIndexSearchBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchBody ¶
type GetIndexSearchBody struct { // query // Required: true Query *GetIndexSearchParamsBodyQuery `json:"query"` }
GetIndexSearchBody get index search body
swagger:model GetIndexSearchBody
func (*GetIndexSearchBody) MarshalBinary ¶
func (o *GetIndexSearchBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchBody) UnmarshalBinary ¶
func (o *GetIndexSearchBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchHandler ¶
type GetIndexSearchHandler interface {
Handle(GetIndexSearchParams) middleware.Responder
}
GetIndexSearchHandler interface for that can handle valid get index search params
type GetIndexSearchHandlerFunc ¶
type GetIndexSearchHandlerFunc func(GetIndexSearchParams) middleware.Responder
GetIndexSearchHandlerFunc turns a function with the right signature into a get index search handler
func (GetIndexSearchHandlerFunc) Handle ¶
func (fn GetIndexSearchHandlerFunc) Handle(params GetIndexSearchParams) middleware.Responder
Handle executing the request and returning a response
type GetIndexSearchInternalServerError ¶
type GetIndexSearchInternalServerError struct { /* In: Body */ Payload *GetIndexSearchInternalServerErrorBody `json:"body,omitempty"` }
GetIndexSearchInternalServerError Internal Server Error
swagger:response getIndexSearchInternalServerError
func NewGetIndexSearchInternalServerError ¶
func NewGetIndexSearchInternalServerError() *GetIndexSearchInternalServerError
NewGetIndexSearchInternalServerError creates GetIndexSearchInternalServerError with default headers values
func (*GetIndexSearchInternalServerError) SetPayload ¶
func (o *GetIndexSearchInternalServerError) SetPayload(payload *GetIndexSearchInternalServerErrorBody)
SetPayload sets the payload to the get index search internal server error response
func (*GetIndexSearchInternalServerError) WithPayload ¶
func (o *GetIndexSearchInternalServerError) WithPayload(payload *GetIndexSearchInternalServerErrorBody) *GetIndexSearchInternalServerError
WithPayload adds the payload to the get index search internal server error response
func (*GetIndexSearchInternalServerError) WriteResponse ¶
func (o *GetIndexSearchInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexSearchInternalServerErrorBody ¶
type GetIndexSearchInternalServerErrorBody struct { // message Message string `json:"message,omitempty"` }
GetIndexSearchInternalServerErrorBody get index search internal server error body
swagger:model GetIndexSearchInternalServerErrorBody
func (*GetIndexSearchInternalServerErrorBody) MarshalBinary ¶
func (o *GetIndexSearchInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchInternalServerErrorBody) UnmarshalBinary ¶
func (o *GetIndexSearchInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchNotFound ¶
type GetIndexSearchNotFound struct { /* In: Body */ Payload *GetIndexSearchNotFoundBody `json:"body,omitempty"` }
GetIndexSearchNotFound Not Found
swagger:response getIndexSearchNotFound
func NewGetIndexSearchNotFound ¶
func NewGetIndexSearchNotFound() *GetIndexSearchNotFound
NewGetIndexSearchNotFound creates GetIndexSearchNotFound with default headers values
func (*GetIndexSearchNotFound) SetPayload ¶
func (o *GetIndexSearchNotFound) SetPayload(payload *GetIndexSearchNotFoundBody)
SetPayload sets the payload to the get index search not found response
func (*GetIndexSearchNotFound) WithPayload ¶
func (o *GetIndexSearchNotFound) WithPayload(payload *GetIndexSearchNotFoundBody) *GetIndexSearchNotFound
WithPayload adds the payload to the get index search not found response
func (*GetIndexSearchNotFound) WriteResponse ¶
func (o *GetIndexSearchNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexSearchNotFoundBody ¶
type GetIndexSearchNotFoundBody struct { // message Message string `json:"message,omitempty"` }
GetIndexSearchNotFoundBody get index search not found body
swagger:model GetIndexSearchNotFoundBody
func (*GetIndexSearchNotFoundBody) MarshalBinary ¶
func (o *GetIndexSearchNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchNotFoundBody) UnmarshalBinary ¶
func (o *GetIndexSearchNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchOK ¶
type GetIndexSearchOK struct { /* In: Body */ Payload *GetIndexSearchOKBody `json:"body,omitempty"` }
GetIndexSearchOK OK
swagger:response getIndexSearchOK
func NewGetIndexSearchOK ¶
func NewGetIndexSearchOK() *GetIndexSearchOK
NewGetIndexSearchOK creates GetIndexSearchOK with default headers values
func (*GetIndexSearchOK) SetPayload ¶
func (o *GetIndexSearchOK) SetPayload(payload *GetIndexSearchOKBody)
SetPayload sets the payload to the get index search o k response
func (*GetIndexSearchOK) WithPayload ¶
func (o *GetIndexSearchOK) WithPayload(payload *GetIndexSearchOKBody) *GetIndexSearchOK
WithPayload adds the payload to the get index search o k response
func (*GetIndexSearchOK) WriteResponse ¶
func (o *GetIndexSearchOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexSearchOKBody ¶
type GetIndexSearchOKBody struct { // shards Shards *GetIndexSearchOKBodyShards `json:"_shards,omitempty"` // hits Hits *GetIndexSearchOKBodyHits `json:"hits,omitempty"` // timed out TimedOut bool `json:"timed_out,omitempty"` // took Took int64 `json:"took,omitempty"` }
GetIndexSearchOKBody get index search o k body
swagger:model GetIndexSearchOKBody
func (*GetIndexSearchOKBody) MarshalBinary ¶
func (o *GetIndexSearchOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchOKBody) UnmarshalBinary ¶
func (o *GetIndexSearchOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchOKBodyHits ¶
type GetIndexSearchOKBodyHits struct { // hits Hits []*GetIndexSearchOKBodyHitsHitsItems0 `json:"hits"` // max score MaxScore interface{} `json:"max_score,omitempty"` // total Total *GetIndexSearchOKBodyHitsTotal `json:"total,omitempty"` }
GetIndexSearchOKBodyHits get index search o k body hits
swagger:model GetIndexSearchOKBodyHits
func (*GetIndexSearchOKBodyHits) MarshalBinary ¶
func (o *GetIndexSearchOKBodyHits) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchOKBodyHits) UnmarshalBinary ¶
func (o *GetIndexSearchOKBodyHits) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchOKBodyHitsHitsItems0 ¶
type GetIndexSearchOKBodyHitsHitsItems0 struct { // id ID string `json:"_id,omitempty"` // index Index string `json:"_index,omitempty"` // score Score interface{} `json:"_score,omitempty"` // source Source *models.Document `json:"_source,omitempty"` // type Type string `json:"_type,omitempty"` // sort Sort []int64 `json:"sort"` }
GetIndexSearchOKBodyHitsHitsItems0 get index search o k body hits hits items0
swagger:model GetIndexSearchOKBodyHitsHitsItems0
func (*GetIndexSearchOKBodyHitsHitsItems0) MarshalBinary ¶
func (o *GetIndexSearchOKBodyHitsHitsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchOKBodyHitsHitsItems0) UnmarshalBinary ¶
func (o *GetIndexSearchOKBodyHitsHitsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchOKBodyHitsTotal ¶
type GetIndexSearchOKBodyHitsTotal struct { // relation Relation string `json:"relation,omitempty"` // total Total int64 `json:"total,omitempty"` }
GetIndexSearchOKBodyHitsTotal get index search o k body hits total
swagger:model GetIndexSearchOKBodyHitsTotal
func (*GetIndexSearchOKBodyHitsTotal) MarshalBinary ¶
func (o *GetIndexSearchOKBodyHitsTotal) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchOKBodyHitsTotal) UnmarshalBinary ¶
func (o *GetIndexSearchOKBodyHitsTotal) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchOKBodyShards ¶
type GetIndexSearchOKBodyShards struct { // failed Failed int64 `json:"failed,omitempty"` // skipped Skipped int64 `json:"skipped,omitempty"` // successful Successful int64 `json:"successful,omitempty"` // total Total int64 `json:"total,omitempty"` }
GetIndexSearchOKBodyShards get index search o k body shards
swagger:model GetIndexSearchOKBodyShards
func (*GetIndexSearchOKBodyShards) MarshalBinary ¶
func (o *GetIndexSearchOKBodyShards) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchOKBodyShards) UnmarshalBinary ¶
func (o *GetIndexSearchOKBodyShards) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchParams ¶
type GetIndexSearchParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body GetIndexSearchBody /*Name of the index that contains the document. Required: true In: path */ Index string /*Search by unique_key In: query */ Q *string }
GetIndexSearchParams contains all the bound params for the get index search operation typically these are obtained from a http.Request
swagger:parameters get-index-_search
func NewGetIndexSearchParams ¶
func NewGetIndexSearchParams() GetIndexSearchParams
NewGetIndexSearchParams creates a new GetIndexSearchParams object no default values defined in spec.
func (*GetIndexSearchParams) BindRequest ¶
func (o *GetIndexSearchParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetIndexSearchParams() beforehand.
type GetIndexSearchParamsBodyQuery ¶
type GetIndexSearchParamsBodyQuery struct { // bool // Required: true Bool *GetIndexSearchParamsBodyQueryBool `json:"bool"` }
GetIndexSearchParamsBodyQuery get index search params body query
swagger:model GetIndexSearchParamsBodyQuery
func (*GetIndexSearchParamsBodyQuery) MarshalBinary ¶
func (o *GetIndexSearchParamsBodyQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchParamsBodyQuery) UnmarshalBinary ¶
func (o *GetIndexSearchParamsBodyQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchParamsBodyQueryBool ¶
type GetIndexSearchParamsBodyQueryBool struct { // filter Filter *GetIndexSearchParamsBodyQueryBoolFilter `json:"filter,omitempty"` // must Must *GetIndexSearchParamsBodyQueryBoolMust `json:"must,omitempty"` }
GetIndexSearchParamsBodyQueryBool get index search params body query bool
swagger:model GetIndexSearchParamsBodyQueryBool
func (*GetIndexSearchParamsBodyQueryBool) MarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBool) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchParamsBodyQueryBool) UnmarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBool) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchParamsBodyQueryBoolFilter ¶
type GetIndexSearchParamsBodyQueryBoolFilter struct { // terms // Required: true Terms *GetIndexSearchParamsBodyQueryBoolFilterTerms `json:"terms"` }
GetIndexSearchParamsBodyQueryBoolFilter get index search params body query bool filter
swagger:model GetIndexSearchParamsBodyQueryBoolFilter
func (*GetIndexSearchParamsBodyQueryBoolFilter) MarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolFilter) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchParamsBodyQueryBoolFilter) UnmarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolFilter) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchParamsBodyQueryBoolFilterTerms ¶
type GetIndexSearchParamsBodyQueryBoolFilterTerms struct { // tags // Required: true Tags []string `json:"tags"` }
GetIndexSearchParamsBodyQueryBoolFilterTerms get index search params body query bool filter terms
swagger:model GetIndexSearchParamsBodyQueryBoolFilterTerms
func (*GetIndexSearchParamsBodyQueryBoolFilterTerms) MarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolFilterTerms) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchParamsBodyQueryBoolFilterTerms) UnmarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolFilterTerms) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchParamsBodyQueryBoolMust ¶
type GetIndexSearchParamsBodyQueryBoolMust struct { // match phrase // Required: true MatchPhrase *GetIndexSearchParamsBodyQueryBoolMustMatchPhrase `json:"match_phrase"` }
GetIndexSearchParamsBodyQueryBoolMust get index search params body query bool must
swagger:model GetIndexSearchParamsBodyQueryBoolMust
func (*GetIndexSearchParamsBodyQueryBoolMust) MarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolMust) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchParamsBodyQueryBoolMust) UnmarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolMust) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchParamsBodyQueryBoolMustMatchPhrase ¶
type GetIndexSearchParamsBodyQueryBoolMustMatchPhrase struct { // content // Required: true Content *GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent `json:"content"` }
GetIndexSearchParamsBodyQueryBoolMustMatchPhrase get index search params body query bool must match phrase
swagger:model GetIndexSearchParamsBodyQueryBoolMustMatchPhrase
func (*GetIndexSearchParamsBodyQueryBoolMustMatchPhrase) MarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolMustMatchPhrase) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchParamsBodyQueryBoolMustMatchPhrase) UnmarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolMustMatchPhrase) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent ¶
type GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent struct { // analyzer Analyzer string `json:"analyzer,omitempty"` // query // Required: true Query *string `json:"query"` }
GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent get index search params body query bool must match phrase content
swagger:model GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent
func (*GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent) MarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent) UnmarshalBinary ¶
func (o *GetIndexSearchParamsBodyQueryBoolMustMatchPhraseContent) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSearchURL ¶
GetIndexSearchURL generates an URL for the get index search operation
func (*GetIndexSearchURL) Build ¶
func (o *GetIndexSearchURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetIndexSearchURL) BuildFull ¶
func (o *GetIndexSearchURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetIndexSearchURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetIndexSearchURL) SetBasePath ¶
func (o *GetIndexSearchURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetIndexSearchURL) String ¶
func (o *GetIndexSearchURL) String() string
String returns the string representation of the path with query string
func (*GetIndexSearchURL) StringFull ¶
func (o *GetIndexSearchURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetIndexSearchURL) WithBasePath ¶
func (o *GetIndexSearchURL) WithBasePath(bp string) *GetIndexSearchURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetIndexSourceID ¶
type GetIndexSourceID struct { Context *middleware.Context Handler GetIndexSourceIDHandler }
GetIndexSourceID swagger:route GET /{index}/_source/{_id} getIndexSourceId
Your GET endpoint ¶
You use GET to retrieve just the document from a particular index.
func NewGetIndexSourceID ¶
func NewGetIndexSourceID(ctx *middleware.Context, handler GetIndexSourceIDHandler) *GetIndexSourceID
NewGetIndexSourceID creates a new http.Handler for the get index source id operation
func (*GetIndexSourceID) ServeHTTP ¶
func (o *GetIndexSourceID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetIndexSourceIDBadRequest ¶
type GetIndexSourceIDBadRequest struct { /* In: Body */ Payload *GetIndexSourceIDBadRequestBody `json:"body,omitempty"` }
GetIndexSourceIDBadRequest Bad Request
swagger:response getIndexSourceIdBadRequest
func NewGetIndexSourceIDBadRequest ¶
func NewGetIndexSourceIDBadRequest() *GetIndexSourceIDBadRequest
NewGetIndexSourceIDBadRequest creates GetIndexSourceIDBadRequest with default headers values
func (*GetIndexSourceIDBadRequest) SetPayload ¶
func (o *GetIndexSourceIDBadRequest) SetPayload(payload *GetIndexSourceIDBadRequestBody)
SetPayload sets the payload to the get index source Id bad request response
func (*GetIndexSourceIDBadRequest) WithPayload ¶
func (o *GetIndexSourceIDBadRequest) WithPayload(payload *GetIndexSourceIDBadRequestBody) *GetIndexSourceIDBadRequest
WithPayload adds the payload to the get index source Id bad request response
func (*GetIndexSourceIDBadRequest) WriteResponse ¶
func (o *GetIndexSourceIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexSourceIDBadRequestBody ¶
type GetIndexSourceIDBadRequestBody struct { // message Message string `json:"message,omitempty"` }
GetIndexSourceIDBadRequestBody get index source ID bad request body
swagger:model GetIndexSourceIDBadRequestBody
func (*GetIndexSourceIDBadRequestBody) MarshalBinary ¶
func (o *GetIndexSourceIDBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSourceIDBadRequestBody) UnmarshalBinary ¶
func (o *GetIndexSourceIDBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSourceIDHandler ¶
type GetIndexSourceIDHandler interface {
Handle(GetIndexSourceIDParams) middleware.Responder
}
GetIndexSourceIDHandler interface for that can handle valid get index source id params
type GetIndexSourceIDHandlerFunc ¶
type GetIndexSourceIDHandlerFunc func(GetIndexSourceIDParams) middleware.Responder
GetIndexSourceIDHandlerFunc turns a function with the right signature into a get index source id handler
func (GetIndexSourceIDHandlerFunc) Handle ¶
func (fn GetIndexSourceIDHandlerFunc) Handle(params GetIndexSourceIDParams) middleware.Responder
Handle executing the request and returning a response
type GetIndexSourceIDNotFound ¶
type GetIndexSourceIDNotFound struct { /* In: Body */ Payload *GetIndexSourceIDNotFoundBody `json:"body,omitempty"` }
GetIndexSourceIDNotFound Not Found
swagger:response getIndexSourceIdNotFound
func NewGetIndexSourceIDNotFound ¶
func NewGetIndexSourceIDNotFound() *GetIndexSourceIDNotFound
NewGetIndexSourceIDNotFound creates GetIndexSourceIDNotFound with default headers values
func (*GetIndexSourceIDNotFound) SetPayload ¶
func (o *GetIndexSourceIDNotFound) SetPayload(payload *GetIndexSourceIDNotFoundBody)
SetPayload sets the payload to the get index source Id not found response
func (*GetIndexSourceIDNotFound) WithPayload ¶
func (o *GetIndexSourceIDNotFound) WithPayload(payload *GetIndexSourceIDNotFoundBody) *GetIndexSourceIDNotFound
WithPayload adds the payload to the get index source Id not found response
func (*GetIndexSourceIDNotFound) WriteResponse ¶
func (o *GetIndexSourceIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexSourceIDNotFoundBody ¶
type GetIndexSourceIDNotFoundBody struct { // message Message string `json:"message,omitempty"` }
GetIndexSourceIDNotFoundBody get index source ID not found body
swagger:model GetIndexSourceIDNotFoundBody
func (*GetIndexSourceIDNotFoundBody) MarshalBinary ¶
func (o *GetIndexSourceIDNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetIndexSourceIDNotFoundBody) UnmarshalBinary ¶
func (o *GetIndexSourceIDNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetIndexSourceIDOK ¶
GetIndexSourceIDOK OK
swagger:response getIndexSourceIdOK
func NewGetIndexSourceIDOK ¶
func NewGetIndexSourceIDOK() *GetIndexSourceIDOK
NewGetIndexSourceIDOK creates GetIndexSourceIDOK with default headers values
func (*GetIndexSourceIDOK) SetPayload ¶
func (o *GetIndexSourceIDOK) SetPayload(payload *models.Document)
SetPayload sets the payload to the get index source Id o k response
func (*GetIndexSourceIDOK) WithPayload ¶
func (o *GetIndexSourceIDOK) WithPayload(payload *models.Document) *GetIndexSourceIDOK
WithPayload adds the payload to the get index source Id o k response
func (*GetIndexSourceIDOK) WriteResponse ¶
func (o *GetIndexSourceIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetIndexSourceIDParams ¶
type GetIndexSourceIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Unique identifier of the document. Required: true In: path */ ID string /*Name of the index that contains the document. Required: true In: path */ Index string }
GetIndexSourceIDParams contains all the bound params for the get index source id operation typically these are obtained from a http.Request
swagger:parameters get-index-_source-_id
func NewGetIndexSourceIDParams ¶
func NewGetIndexSourceIDParams() GetIndexSourceIDParams
NewGetIndexSourceIDParams creates a new GetIndexSourceIDParams object no default values defined in spec.
func (*GetIndexSourceIDParams) BindRequest ¶
func (o *GetIndexSourceIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetIndexSourceIDParams() beforehand.
type GetIndexSourceIDURL ¶
type GetIndexSourceIDURL struct { ID string Index string // contains filtered or unexported fields }
GetIndexSourceIDURL generates an URL for the get index source id operation
func (*GetIndexSourceIDURL) Build ¶
func (o *GetIndexSourceIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetIndexSourceIDURL) BuildFull ¶
func (o *GetIndexSourceIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetIndexSourceIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetIndexSourceIDURL) SetBasePath ¶
func (o *GetIndexSourceIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetIndexSourceIDURL) String ¶
func (o *GetIndexSourceIDURL) String() string
String returns the string representation of the path with query string
func (*GetIndexSourceIDURL) StringFull ¶
func (o *GetIndexSourceIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetIndexSourceIDURL) WithBasePath ¶
func (o *GetIndexSourceIDURL) WithBasePath(bp string) *GetIndexSourceIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostIndexDoc ¶
type PostIndexDoc struct { Context *middleware.Context Handler PostIndexDocHandler }
PostIndexDoc swagger:route POST /{index}/_doc/ postIndexDoc
Adds a JSON document to the specified index and makes it searchable.
func NewPostIndexDoc ¶
func NewPostIndexDoc(ctx *middleware.Context, handler PostIndexDocHandler) *PostIndexDoc
NewPostIndexDoc creates a new http.Handler for the post index doc operation
func (*PostIndexDoc) ServeHTTP ¶
func (o *PostIndexDoc) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostIndexDocHandler ¶
type PostIndexDocHandler interface {
Handle(PostIndexDocParams) middleware.Responder
}
PostIndexDocHandler interface for that can handle valid post index doc params
type PostIndexDocHandlerFunc ¶
type PostIndexDocHandlerFunc func(PostIndexDocParams) middleware.Responder
PostIndexDocHandlerFunc turns a function with the right signature into a post index doc handler
func (PostIndexDocHandlerFunc) Handle ¶
func (fn PostIndexDocHandlerFunc) Handle(params PostIndexDocParams) middleware.Responder
Handle executing the request and returning a response
type PostIndexDocInternalServerError ¶
type PostIndexDocInternalServerError struct { /* In: Body */ Payload *PostIndexDocInternalServerErrorBody `json:"body,omitempty"` }
PostIndexDocInternalServerError Internal Server Error
swagger:response postIndexDocInternalServerError
func NewPostIndexDocInternalServerError ¶
func NewPostIndexDocInternalServerError() *PostIndexDocInternalServerError
NewPostIndexDocInternalServerError creates PostIndexDocInternalServerError with default headers values
func (*PostIndexDocInternalServerError) SetPayload ¶
func (o *PostIndexDocInternalServerError) SetPayload(payload *PostIndexDocInternalServerErrorBody)
SetPayload sets the payload to the post index doc internal server error response
func (*PostIndexDocInternalServerError) WithPayload ¶
func (o *PostIndexDocInternalServerError) WithPayload(payload *PostIndexDocInternalServerErrorBody) *PostIndexDocInternalServerError
WithPayload adds the payload to the post index doc internal server error response
func (*PostIndexDocInternalServerError) WriteResponse ¶
func (o *PostIndexDocInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostIndexDocInternalServerErrorBody ¶
type PostIndexDocInternalServerErrorBody struct { // message Message string `json:"message,omitempty"` }
PostIndexDocInternalServerErrorBody post index doc internal server error body
swagger:model PostIndexDocInternalServerErrorBody
func (*PostIndexDocInternalServerErrorBody) MarshalBinary ¶
func (o *PostIndexDocInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostIndexDocInternalServerErrorBody) UnmarshalBinary ¶
func (o *PostIndexDocInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostIndexDocNotFound ¶
type PostIndexDocNotFound struct { /* In: Body */ Payload *PostIndexDocNotFoundBody `json:"body,omitempty"` }
PostIndexDocNotFound Not Found
swagger:response postIndexDocNotFound
func NewPostIndexDocNotFound ¶
func NewPostIndexDocNotFound() *PostIndexDocNotFound
NewPostIndexDocNotFound creates PostIndexDocNotFound with default headers values
func (*PostIndexDocNotFound) SetPayload ¶
func (o *PostIndexDocNotFound) SetPayload(payload *PostIndexDocNotFoundBody)
SetPayload sets the payload to the post index doc not found response
func (*PostIndexDocNotFound) WithPayload ¶
func (o *PostIndexDocNotFound) WithPayload(payload *PostIndexDocNotFoundBody) *PostIndexDocNotFound
WithPayload adds the payload to the post index doc not found response
func (*PostIndexDocNotFound) WriteResponse ¶
func (o *PostIndexDocNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostIndexDocNotFoundBody ¶
type PostIndexDocNotFoundBody struct { // message Message string `json:"message,omitempty"` }
PostIndexDocNotFoundBody post index doc not found body
swagger:model PostIndexDocNotFoundBody
func (*PostIndexDocNotFoundBody) MarshalBinary ¶
func (o *PostIndexDocNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostIndexDocNotFoundBody) UnmarshalBinary ¶
func (o *PostIndexDocNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostIndexDocOK ¶
type PostIndexDocOK struct { /* In: Body */ Payload *models.ModifyResponse `json:"body,omitempty"` }
PostIndexDocOK OK
swagger:response postIndexDocOK
func NewPostIndexDocOK ¶
func NewPostIndexDocOK() *PostIndexDocOK
NewPostIndexDocOK creates PostIndexDocOK with default headers values
func (*PostIndexDocOK) SetPayload ¶
func (o *PostIndexDocOK) SetPayload(payload *models.ModifyResponse)
SetPayload sets the payload to the post index doc o k response
func (*PostIndexDocOK) WithPayload ¶
func (o *PostIndexDocOK) WithPayload(payload *models.ModifyResponse) *PostIndexDocOK
WithPayload adds the payload to the post index doc o k response
func (*PostIndexDocOK) WriteResponse ¶
func (o *PostIndexDocOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostIndexDocParams ¶
type PostIndexDocParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.Document /*Name of the target index. Required: true In: path */ Index string }
PostIndexDocParams contains all the bound params for the post index doc operation typically these are obtained from a http.Request
swagger:parameters post-index-_doc
func NewPostIndexDocParams ¶
func NewPostIndexDocParams() PostIndexDocParams
NewPostIndexDocParams creates a new PostIndexDocParams object no default values defined in spec.
func (*PostIndexDocParams) BindRequest ¶
func (o *PostIndexDocParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPostIndexDocParams() beforehand.
type PostIndexDocURL ¶
type PostIndexDocURL struct { Index string // contains filtered or unexported fields }
PostIndexDocURL generates an URL for the post index doc operation
func (*PostIndexDocURL) Build ¶
func (o *PostIndexDocURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostIndexDocURL) BuildFull ¶
func (o *PostIndexDocURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostIndexDocURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostIndexDocURL) SetBasePath ¶
func (o *PostIndexDocURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostIndexDocURL) String ¶
func (o *PostIndexDocURL) String() string
String returns the string representation of the path with query string
func (*PostIndexDocURL) StringFull ¶
func (o *PostIndexDocURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostIndexDocURL) WithBasePath ¶
func (o *PostIndexDocURL) WithBasePath(bp string) *PostIndexDocURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PutIndexDocID ¶
type PutIndexDocID struct { Context *middleware.Context Handler PutIndexDocIDHandler }
PutIndexDocID swagger:route PUT /{index}/_doc/{_id} putIndexDocId
Update an existing JSON document to the specified index and makes it searchable.
func NewPutIndexDocID ¶
func NewPutIndexDocID(ctx *middleware.Context, handler PutIndexDocIDHandler) *PutIndexDocID
NewPutIndexDocID creates a new http.Handler for the put index doc id operation
func (*PutIndexDocID) ServeHTTP ¶
func (o *PutIndexDocID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutIndexDocIDBadRequest ¶
type PutIndexDocIDBadRequest struct { /* In: Body */ Payload *PutIndexDocIDBadRequestBody `json:"body,omitempty"` }
PutIndexDocIDBadRequest Bad Request
swagger:response putIndexDocIdBadRequest
func NewPutIndexDocIDBadRequest ¶
func NewPutIndexDocIDBadRequest() *PutIndexDocIDBadRequest
NewPutIndexDocIDBadRequest creates PutIndexDocIDBadRequest with default headers values
func (*PutIndexDocIDBadRequest) SetPayload ¶
func (o *PutIndexDocIDBadRequest) SetPayload(payload *PutIndexDocIDBadRequestBody)
SetPayload sets the payload to the put index doc Id bad request response
func (*PutIndexDocIDBadRequest) WithPayload ¶
func (o *PutIndexDocIDBadRequest) WithPayload(payload *PutIndexDocIDBadRequestBody) *PutIndexDocIDBadRequest
WithPayload adds the payload to the put index doc Id bad request response
func (*PutIndexDocIDBadRequest) WriteResponse ¶
func (o *PutIndexDocIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutIndexDocIDBadRequestBody ¶
type PutIndexDocIDBadRequestBody struct { // message Message string `json:"message,omitempty"` }
PutIndexDocIDBadRequestBody put index doc ID bad request body
swagger:model PutIndexDocIDBadRequestBody
func (*PutIndexDocIDBadRequestBody) MarshalBinary ¶
func (o *PutIndexDocIDBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutIndexDocIDBadRequestBody) UnmarshalBinary ¶
func (o *PutIndexDocIDBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutIndexDocIDHandler ¶
type PutIndexDocIDHandler interface {
Handle(PutIndexDocIDParams) middleware.Responder
}
PutIndexDocIDHandler interface for that can handle valid put index doc id params
type PutIndexDocIDHandlerFunc ¶
type PutIndexDocIDHandlerFunc func(PutIndexDocIDParams) middleware.Responder
PutIndexDocIDHandlerFunc turns a function with the right signature into a put index doc id handler
func (PutIndexDocIDHandlerFunc) Handle ¶
func (fn PutIndexDocIDHandlerFunc) Handle(params PutIndexDocIDParams) middleware.Responder
Handle executing the request and returning a response
type PutIndexDocIDNotFound ¶
type PutIndexDocIDNotFound struct { /* In: Body */ Payload *PutIndexDocIDNotFoundBody `json:"body,omitempty"` }
PutIndexDocIDNotFound Not Found
swagger:response putIndexDocIdNotFound
func NewPutIndexDocIDNotFound ¶
func NewPutIndexDocIDNotFound() *PutIndexDocIDNotFound
NewPutIndexDocIDNotFound creates PutIndexDocIDNotFound with default headers values
func (*PutIndexDocIDNotFound) SetPayload ¶
func (o *PutIndexDocIDNotFound) SetPayload(payload *PutIndexDocIDNotFoundBody)
SetPayload sets the payload to the put index doc Id not found response
func (*PutIndexDocIDNotFound) WithPayload ¶
func (o *PutIndexDocIDNotFound) WithPayload(payload *PutIndexDocIDNotFoundBody) *PutIndexDocIDNotFound
WithPayload adds the payload to the put index doc Id not found response
func (*PutIndexDocIDNotFound) WriteResponse ¶
func (o *PutIndexDocIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutIndexDocIDNotFoundBody ¶
type PutIndexDocIDNotFoundBody struct { // message Message string `json:"message,omitempty"` }
PutIndexDocIDNotFoundBody put index doc ID not found body
swagger:model PutIndexDocIDNotFoundBody
func (*PutIndexDocIDNotFoundBody) MarshalBinary ¶
func (o *PutIndexDocIDNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutIndexDocIDNotFoundBody) UnmarshalBinary ¶
func (o *PutIndexDocIDNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutIndexDocIDOK ¶
type PutIndexDocIDOK struct { /* In: Body */ Payload *models.ModifyResponse `json:"body,omitempty"` }
PutIndexDocIDOK OK
swagger:response putIndexDocIdOK
func NewPutIndexDocIDOK ¶
func NewPutIndexDocIDOK() *PutIndexDocIDOK
NewPutIndexDocIDOK creates PutIndexDocIDOK with default headers values
func (*PutIndexDocIDOK) SetPayload ¶
func (o *PutIndexDocIDOK) SetPayload(payload *models.ModifyResponse)
SetPayload sets the payload to the put index doc Id o k response
func (*PutIndexDocIDOK) WithPayload ¶
func (o *PutIndexDocIDOK) WithPayload(payload *models.ModifyResponse) *PutIndexDocIDOK
WithPayload adds the payload to the put index doc Id o k response
func (*PutIndexDocIDOK) WriteResponse ¶
func (o *PutIndexDocIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutIndexDocIDParams ¶
type PutIndexDocIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Unique identifier of the document. Required: true In: path */ ID string /* In: body */ Body *models.Document /*Name of the index that contains the document. Required: true In: path */ Index string }
PutIndexDocIDParams contains all the bound params for the put index doc id operation typically these are obtained from a http.Request
swagger:parameters put-index-_doc-_id
func NewPutIndexDocIDParams ¶
func NewPutIndexDocIDParams() PutIndexDocIDParams
NewPutIndexDocIDParams creates a new PutIndexDocIDParams object no default values defined in spec.
func (*PutIndexDocIDParams) BindRequest ¶
func (o *PutIndexDocIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPutIndexDocIDParams() beforehand.
type PutIndexDocIDURL ¶
PutIndexDocIDURL generates an URL for the put index doc id operation
func (*PutIndexDocIDURL) Build ¶
func (o *PutIndexDocIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutIndexDocIDURL) BuildFull ¶
func (o *PutIndexDocIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutIndexDocIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutIndexDocIDURL) SetBasePath ¶
func (o *PutIndexDocIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PutIndexDocIDURL) String ¶
func (o *PutIndexDocIDURL) String() string
String returns the string representation of the path with query string
func (*PutIndexDocIDURL) StringFull ¶
func (o *PutIndexDocIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutIndexDocIDURL) WithBasePath ¶
func (o *PutIndexDocIDURL) WithBasePath(bp string) *PutIndexDocIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type WatertowerAPI ¶
type WatertowerAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // DeleteIndexDocIDHandler sets the operation handler for the delete index doc id operation DeleteIndexDocIDHandler DeleteIndexDocIDHandler // GetIndexDocIDHandler sets the operation handler for the get index doc id operation GetIndexDocIDHandler GetIndexDocIDHandler // GetIndexSearchHandler sets the operation handler for the get index search operation GetIndexSearchHandler GetIndexSearchHandler // GetIndexSourceIDHandler sets the operation handler for the get index source id operation GetIndexSourceIDHandler GetIndexSourceIDHandler // PostIndexDocHandler sets the operation handler for the post index doc operation PostIndexDocHandler PostIndexDocHandler // PutIndexDocIDHandler sets the operation handler for the put index doc id operation PutIndexDocIDHandler PutIndexDocIDHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
WatertowerAPI the watertower API
func NewWatertowerAPI ¶
func NewWatertowerAPI(spec *loads.Document) *WatertowerAPI
NewWatertowerAPI creates a new Watertower instance
func (*WatertowerAPI) AddMiddlewareFor ¶
func (o *WatertowerAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*WatertowerAPI) AuthenticatorsFor ¶
func (o *WatertowerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*WatertowerAPI) Authorizer ¶
func (o *WatertowerAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*WatertowerAPI) ConsumersFor ¶
func (o *WatertowerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*WatertowerAPI) Context ¶
func (o *WatertowerAPI) Context() *middleware.Context
Context returns the middleware context for the watertower API
func (*WatertowerAPI) DefaultConsumes ¶
func (o *WatertowerAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*WatertowerAPI) DefaultProduces ¶
func (o *WatertowerAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*WatertowerAPI) Formats ¶
func (o *WatertowerAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*WatertowerAPI) HandlerFor ¶
func (o *WatertowerAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*WatertowerAPI) Init ¶
func (o *WatertowerAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*WatertowerAPI) ProducersFor ¶
func (o *WatertowerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*WatertowerAPI) RegisterConsumer ¶
func (o *WatertowerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*WatertowerAPI) RegisterFormat ¶
func (o *WatertowerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*WatertowerAPI) RegisterProducer ¶
func (o *WatertowerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*WatertowerAPI) Serve ¶
func (o *WatertowerAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*WatertowerAPI) ServeErrorFor ¶
func (o *WatertowerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*WatertowerAPI) SetDefaultConsumes ¶
func (o *WatertowerAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*WatertowerAPI) SetDefaultProduces ¶
func (o *WatertowerAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*WatertowerAPI) SetSpec ¶
func (o *WatertowerAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*WatertowerAPI) Validate ¶
func (o *WatertowerAPI) Validate() error
Validate validates the registrations in the WatertowerAPI
Source Files ¶
- delete_index_doc_id.go
- delete_index_doc_id_parameters.go
- delete_index_doc_id_responses.go
- delete_index_doc_id_urlbuilder.go
- get_index_doc_id.go
- get_index_doc_id_parameters.go
- get_index_doc_id_responses.go
- get_index_doc_id_urlbuilder.go
- get_index_search.go
- get_index_search_parameters.go
- get_index_search_responses.go
- get_index_search_urlbuilder.go
- get_index_source_id.go
- get_index_source_id_parameters.go
- get_index_source_id_responses.go
- get_index_source_id_urlbuilder.go
- post_index_doc.go
- post_index_doc_parameters.go
- post_index_doc_responses.go
- post_index_doc_urlbuilder.go
- put_index_doc_id.go
- put_index_doc_id_parameters.go
- put_index_doc_id_responses.go
- put_index_doc_id_urlbuilder.go
- watertower_api.go