models

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (m *Document) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Document) UnmarshalBinary

func (m *Document) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Document) Validate

func (m *Document) Validate(formats strfmt.Registry) error

Validate validates this document

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

func (*ModifyResponse) Validate

func (m *ModifyResponse) Validate(formats strfmt.Registry) error

Validate validates this modify response

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

func (*ModifyResponseShards) Validate

func (m *ModifyResponseShards) Validate(formats strfmt.Registry) error

Validate validates this modify response shards

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL