Documentation ¶
Index ¶
- Constants
- type Codex
- func (m *Codex) BuildQuery(query interface{}, offset, limit int32) (interface{}, 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{}, offset, limit int32) (interface{}, interface{}, error)
BuildQuery builds a mongo filter plus an Aggregation Pipeline to be performed for computing facets
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.