Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { // content Content string `json:"content,omitempty"` // lang Lang string `json:"lang,omitempty"` // metadata Metadata interface{} `json:"metadata,omitempty"` // tags Tags []string `json:"tags"` // title Title string `json:"title,omitempty"` // unique key UniqueKey string `json:"unique_key,omitempty"` }
Document Document
swagger:model Document
func (*Document) MarshalBinary ¶
MarshalBinary interface implementation
func (*Document) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ModifyResponse ¶
type ModifyResponse 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"` // shards Shards *ModifyResponseShards `json:"_shards,omitempty"` // type Type string `json:"_type,omitempty"` // version Version int64 `json:"_version,omitempty"` // result Result string `json:"result,omitempty"` }
ModifyResponse ModifyResponse
swagger:model ModifyResponse
func (*ModifyResponse) MarshalBinary ¶
func (m *ModifyResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyResponse) UnmarshalBinary ¶
func (m *ModifyResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModifyResponseShards ¶
type ModifyResponseShards struct { // failed Failed int64 `json:"failed,omitempty"` // successful Successful int64 `json:"successful,omitempty"` // total Total int64 `json:"total,omitempty"` }
ModifyResponseShards modify response shards
swagger:model ModifyResponseShards
func (*ModifyResponseShards) MarshalBinary ¶
func (m *ModifyResponseShards) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyResponseShards) UnmarshalBinary ¶
func (m *ModifyResponseShards) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Click to show internal directories.
Click to hide internal directories.