models

package
v0.0.0-...-bd94565 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchResponse

type SearchResponse struct {

	// built query
	BuiltQuery string `json:"built_query,omitempty"`

	// decoration stats
	DecorationStats *SearchResponseDecorationStats `json:"decoration_stats,omitempty"`

	// fields
	Fields []string `json:"fields"`

	// from
	// Format: date-time
	From strfmt.DateTime `json:"from,omitempty"`

	// messages
	Messages []*SearchResponseMessagesItems0 `json:"messages"`

	// query
	Query string `json:"query,omitempty"`

	// time
	Time int64 `json:"time,omitempty"`

	// to
	// Format: date-time
	To strfmt.DateTime `json:"to,omitempty"`

	// total results
	TotalResults int64 `json:"total_results,omitempty"`

	// used indices
	UsedIndices []*SearchResponseUsedIndicesItems0 `json:"used_indices"`
}

SearchResponse search response

swagger:model SearchResponse

func (*SearchResponse) ContextValidate

func (m *SearchResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search response based on the context it is used

func (*SearchResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchResponse) Validate

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

Validate validates this search response

type SearchResponseDecorationStats

type SearchResponseDecorationStats struct {

	// added fields
	AddedFields []string `json:"added_fields"`

	// changed fields
	ChangedFields []string `json:"changed_fields"`

	// removed fields
	RemovedFields []string `json:"removed_fields"`
}

SearchResponseDecorationStats search response decoration stats

swagger:model SearchResponseDecorationStats

func (*SearchResponseDecorationStats) ContextValidate

func (m *SearchResponseDecorationStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search response decoration stats based on context it is used

func (*SearchResponseDecorationStats) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchResponseDecorationStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchResponseDecorationStats) Validate

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

Validate validates this search response decoration stats

type SearchResponseMessagesItems0

type SearchResponseMessagesItems0 struct {

	// decoration stats
	DecorationStats *SearchResponseMessagesItems0DecorationStats `json:"decoration_stats,omitempty"`

	// highlight ranges
	HighlightRanges interface{} `json:"highlight_ranges,omitempty"`

	// index
	Index string `json:"index,omitempty"`

	// message
	Message interface{} `json:"message,omitempty"`
}

SearchResponseMessagesItems0 search response messages items0

swagger:model SearchResponseMessagesItems0

func (*SearchResponseMessagesItems0) ContextValidate

func (m *SearchResponseMessagesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search response messages items0 based on the context it is used

func (*SearchResponseMessagesItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchResponseMessagesItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchResponseMessagesItems0) Validate

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

Validate validates this search response messages items0

type SearchResponseMessagesItems0DecorationStats

type SearchResponseMessagesItems0DecorationStats struct {

	// added fields
	AddedFields interface{} `json:"added_fields,omitempty"`

	// changed fields
	ChangedFields interface{} `json:"changed_fields,omitempty"`

	// removed fields
	RemovedFields interface{} `json:"removed_fields,omitempty"`
}

SearchResponseMessagesItems0DecorationStats search response messages items0 decoration stats

swagger:model SearchResponseMessagesItems0DecorationStats

func (*SearchResponseMessagesItems0DecorationStats) ContextValidate

ContextValidate validates this search response messages items0 decoration stats based on context it is used

func (*SearchResponseMessagesItems0DecorationStats) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchResponseMessagesItems0DecorationStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchResponseMessagesItems0DecorationStats) Validate

Validate validates this search response messages items0 decoration stats

type SearchResponseUsedIndicesItems0

type SearchResponseUsedIndicesItems0 struct {

	// begin
	// Format: date-time
	Begin strfmt.DateTime `json:"begin,omitempty"`

	// calculated at
	// Format: date-time
	CalculatedAt strfmt.DateTime `json:"calculated_at,omitempty"`

	// end
	// Format: date-time
	End strfmt.DateTime `json:"end,omitempty"`

	// index name
	IndexName string `json:"index_name,omitempty"`

	// took ms
	TookMs int64 `json:"took_ms,omitempty"`
}

SearchResponseUsedIndicesItems0 search response used indices items0

swagger:model SearchResponseUsedIndicesItems0

func (*SearchResponseUsedIndicesItems0) ContextValidate

func (m *SearchResponseUsedIndicesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search response used indices items0 based on context it is used

func (*SearchResponseUsedIndicesItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchResponseUsedIndicesItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchResponseUsedIndicesItems0) Validate

Validate validates this search response used indices items0

Jump to

Keyboard shortcuts

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