Documentation ¶
Index ¶
- type MdictIdxer
- func (idxer *MdictIdxer) AddRecord(record *model.MdictKeyWordIndex) error
- func (idxer *MdictIdxer) GetMeta(key string) (value string, err error)
- func (idxer *MdictIdxer) Lookup(keyword string) (*model.MdictKeyWordIndex, error)
- func (idxer *MdictIdxer) Search(keyword string) ([]*model.MdictKeyWordIndex, error)
- func (idxer *MdictIdxer) SetMeta(key, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MdictIdxer ¶
type MdictIdxer struct {
// contains filtered or unexported fields
}
func NewIdxer ¶
func NewIdxer(indexFilePath string) (*MdictIdxer, error)
func (*MdictIdxer) AddRecord ¶
func (idxer *MdictIdxer) AddRecord(record *model.MdictKeyWordIndex) error
AddRecord add mdict word record
func (*MdictIdxer) Lookup ¶
func (idxer *MdictIdxer) Lookup(keyword string) (*model.MdictKeyWordIndex, error)
func (*MdictIdxer) Search ¶
func (idxer *MdictIdxer) Search(keyword string) ([]*model.MdictKeyWordIndex, error)
func (*MdictIdxer) SetMeta ¶
func (idxer *MdictIdxer) SetMeta(key, value string) error
Click to show internal directories.
Click to hide internal directories.