Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDir = "./data/index" DefaultIndexMappingFile = "" DefaultIndexType = upsidedown.Name DefaultKvstore = boltdb.Name )
Variables ¶
This section is empty.
Functions ¶
func NewIndexMapping ¶ added in v0.3.1
func NewIndexMapping(file string) (*mapping.IndexMappingImpl, error)
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func NewIndex ¶
func NewIndex(config *IndexConfig) (*Index, error)
type IndexConfig ¶
type IndexConfig struct {
Dir string `json:"dir,omitempty"`
IndexMapping *mapping.IndexMappingImpl `json:"index_mapping,omitempty"`
IndexType string `json:"index_type,omitempty"`
Kvstore string `json:"kvstore,omitempty"`
Kvconfig map[string]interface{} `json:"kvconfig,omitempty"`
}
func DefaultIndexConfig ¶ added in v0.3.1
func DefaultIndexConfig() *IndexConfig
func (*IndexConfig) SetIndexMapping ¶ added in v0.3.1
func (c *IndexConfig) SetIndexMapping(indexMappingFile string) error
Click to show internal directories.
Click to hide internal directories.