Documentation ¶
Index ¶
- Constants
- type Codex
- func (m *Codex) BuildQuery(query interface{}, _, _ int32, _ string, _ bool) (interface{}, interface{}, error)
- func (m *Codex) BuildQueryOptions(_ interface{}, offset, limit int32, sortFields string, sortDesc bool) (interface{}, error)
- func (m *Codex) FlushCustomFacets() []interface{}
- func (m *Codex) GetModel(sc configx.Values) (interface{}, bool)
- func (m *Codex) Marshal(input interface{}) (interface{}, error)
- func (m *Codex) Unmarshal(indexed interface{}) (interface{}, error)
- func (m *Codex) UnmarshalFacet(data interface{}, facets chan interface{})
Constants ¶
View Source
const (
Collection = "index"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codex ¶
type Codex struct { QueryNsProvider *meta.NsProvider QueryConfigs configx.Values // contains filtered or unexported fields }
func (*Codex) BuildQuery ¶
func (m *Codex) BuildQuery(query interface{}, _, _ int32, _ string, _ bool) (interface{}, interface{}, error)
BuildQuery builds a mongo filter plus an Aggregation Pipeline to be performed for computing facets. Range and sorting parameters are not handled here, but by BuildQueryOptions method.
func (*Codex) BuildQueryOptions ¶ added in v4.4.0
func (m *Codex) BuildQueryOptions(_ interface{}, offset, limit int32, sortFields string, sortDesc bool) (interface{}, error)
BuildQueryOptions overrides basic range options with sortFields data
func (*Codex) FlushCustomFacets ¶
func (m *Codex) FlushCustomFacets() []interface{}
func (*Codex) UnmarshalFacet ¶
func (m *Codex) UnmarshalFacet(data interface{}, facets chan interface{})
Click to show internal directories.
Click to hide internal directories.