Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemIndex ¶
func NewMemIndex() (*index, error)
Types ¶
type EmojiSearch ¶
type EmojiSearch struct {
// contains filtered or unexported fields
}
func NewEmojiSearch ¶
func NewEmojiSearch(cacheLoc, indexLoc string) (*EmojiSearch, error)
func (*EmojiSearch) IsIndexEmpty ¶
func (es *EmojiSearch) IsIndexEmpty() bool
func (*EmojiSearch) RefreshIndex ¶
func (es *EmojiSearch) RefreshIndex()
RefreshIndex updates the index
func (*EmojiSearch) Search ¶
func (es *EmojiSearch) Search(input string) *SearchResultIter
func (*EmojiSearch) UpdateEmojis ¶
func (es *EmojiSearch) UpdateEmojis() error
UpdateEmojis refreshes the local cache of emojis
type SearchResultIter ¶
type SearchResultIter struct { Query string // contains filtered or unexported fields }
func (*SearchResultIter) Next ¶
func (si *SearchResultIter) Next() (*Emoji, error)
Click to show internal directories.
Click to hide internal directories.