Documentation ¶
Index ¶
- Constants
- func Join[V interface{}](slice []V, delim string) (joined string)
- type CFeature
- func (f *CFeature) EQL() feature.QueryIndexFeature
- func (f *CFeature) GetAuthorKeyFrom(nameOrKey string) (flat string, ok bool)
- func (f *CFeature) GetAuthorNameFrom(nameOrKey string) (fullName string, ok bool)
- func (f *CFeature) GetAuthorNames(nameOrKey string) (fullName, lastName, flat string, ok bool)
- func (f *CFeature) GetBuilderKeyCount(prefix string) (count int, ok bool)
- func (f *CFeature) GetBuilderKeyFor(shasum string) (key string, ok bool)
- func (f *CFeature) GetBuilderKeyQuotes(prefix string) (keys []string, quotes []*quote.Quote)
- func (f *CFeature) GetFirstWordLetters() (letters []string)
- func (f *CFeature) GetFirstWords(letter string) (words []string)
- func (f *CFeature) GetHumanBuilderKey(widString string) (human string)
- func (f *CFeature) GetIndexedBuilderKey(human string) (indexed string)
- func (f *CFeature) GetNextBuilderKeyWords(prefix string) (words []string)
- func (f *CFeature) GetPaginatedWordPageStubs(word string, pg, size int) (stubs []*feature.PageStub, total int)
- func (f *CFeature) GetPaginatedWordShasums(word string, pg, size int) (shasums []string)
- func (f *CFeature) GetRandomAuthor() (name string)
- func (f *CFeature) GetRandomQuote() (shasum string)
- func (f *CFeature) GetRandomQuoteUrl() (url, hash string)
- func (f *CFeature) GetRandomTopic() (topic string)
- func (f *CFeature) GetRandomWord() (word string)
- func (f *CFeature) GetSecondWords(letter string, first int) (words []string)
- func (f *CFeature) GetShortestBuilderKey(full string) (shortest string, ok bool)
- func (f *CFeature) GetTopicKeyFrom(nameOrKey string) (flat string, ok bool)
- func (f *CFeature) GetTopicNameFrom(nameOrKey string) (topic string, ok bool)
- func (f *CFeature) GetTopicNames(nameOrKey string) (topic, key string, ok bool)
- func (f *CFeature) GetWidFrom(word string) (wid int64, ok bool)
- func (f *CFeature) GetWids2Words(wids ...int64) (wids2words map[int64]string)
- func (f *CFeature) GetWordFrom(wid int64) (word string, ok bool)
- func (f *CFeature) GetWordInfoFrom(inputs ...string) (wordList []string, lookupWid map[string]int64, ...)
- func (f *CFeature) GetWordPageStubs(word string) (stubs []*feature.PageStub)
- func (f *CFeature) GetWordShasums(word string) (shasums []string)
- func (f *CFeature) GetWords(wids ...int64) (words []string)
- func (f *CFeature) GetWords2Wids(words ...string) (words2wids map[string]int64)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() Feature
- func (f *CFeature) PageTypeNames() (names []string)
- func (f *CFeature) ProcessRequestPageType(r *http.Request, p feature.Page) (pg feature.Page, redirect string, processed bool, err error)
- func (f *CFeature) Setup(enjin feature.Internals)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- func (f *CFeature) TotalAuthors() int64
- func (f *CFeature) TotalFirstWords() int64
- func (f *CFeature) TotalQuotes() int64
- func (f *CFeature) TotalSecondWords() int64
- func (f *CFeature) TotalTopics() int64
- func (f *CFeature) TotalWords() int64
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "qf-indexing-dbh"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CFeature ¶
func (*CFeature) EQL ¶
func (f *CFeature) EQL() feature.QueryIndexFeature
func (*CFeature) GetAuthorKeyFrom ¶
func (*CFeature) GetAuthorNameFrom ¶
func (*CFeature) GetAuthorNames ¶
func (*CFeature) GetBuilderKeyCount ¶
func (*CFeature) GetBuilderKeyFor ¶
func (*CFeature) GetBuilderKeyQuotes ¶
func (*CFeature) GetFirstWordLetters ¶
func (*CFeature) GetFirstWords ¶
func (*CFeature) GetHumanBuilderKey ¶
func (*CFeature) GetIndexedBuilderKey ¶
func (*CFeature) GetNextBuilderKeyWords ¶
func (*CFeature) GetPaginatedWordPageStubs ¶
func (*CFeature) GetPaginatedWordShasums ¶
func (*CFeature) GetRandomAuthor ¶
func (*CFeature) GetRandomQuote ¶
func (*CFeature) GetRandomQuoteUrl ¶
func (*CFeature) GetRandomTopic ¶
func (*CFeature) GetRandomWord ¶
func (*CFeature) GetSecondWords ¶
func (*CFeature) GetShortestBuilderKey ¶
func (*CFeature) GetTopicKeyFrom ¶
func (*CFeature) GetTopicNameFrom ¶
func (*CFeature) GetTopicNames ¶
func (*CFeature) GetWids2Words ¶
func (*CFeature) GetWordInfoFrom ¶
func (*CFeature) GetWordPageStubs ¶
func (*CFeature) GetWordShasums ¶
func (*CFeature) GetWords2Wids ¶
func (*CFeature) PageTypeNames ¶
func (*CFeature) ProcessRequestPageType ¶
func (*CFeature) TotalAuthors ¶
func (*CFeature) TotalFirstWords ¶
func (*CFeature) TotalQuotes ¶
func (*CFeature) TotalSecondWords ¶
func (*CFeature) TotalTopics ¶
func (*CFeature) TotalWords ¶
type Feature ¶
type Feature interface { feature.Feature feature.PageTypeProcessor EQL() feature.QueryIndexFeature GetWidFrom(word string) (wid int64, ok bool) GetWordFrom(wid int64) (word string, ok bool) GetWordInfoFrom(words ...string) (wordList []string, lookupWid map[string]int64, lookupFlat, lookupWord map[string]string) GetIndexedBuilderKey(human string) (widString string) GetHumanBuilderKey(widString string) (human string) GetShortestBuilderKey(full string) (shortest string, ok bool) GetBuilderKeyCount(prefix string) (count int, ok bool) GetBuilderKeyQuotes(prefix string) (keys []string, quotes []*quote.Quote) GetBuilderKeyFor(shasum string) (key string, ok bool) GetNextBuilderKeyWords(prefix string) (words []string) GetFirstWords(prefix string) (words []string) GetSecondWords(prefix string, first int) (words []string) GetFirstWordLetters() (letters []string) GetWordShasums(word string) (shasums []string) GetWordPageStubs(word string) (stubs []*feature.PageStub) GetPaginatedWordPageStubs(word string, pg, size int) (stubs []*feature.PageStub, total int) GetPaginatedWordShasums(word string, pg, size int) (shasums []string) GetAuthorNames(nameOrKey string) (fullName, lastName, key string, ok bool) GetAuthorKeyFrom(name string) (key string, ok bool) GetAuthorNameFrom(name string) (key string, ok bool) GetTopicNames(nameOrKey string) (topic, key string, ok bool) GetTopicKeyFrom(nameOrKey string) (key string, ok bool) GetTopicNameFrom(nameOrKey string) (key string, ok bool) GetRandomWord() (word string) GetRandomTopic() (topic string) GetRandomAuthor() (name string) GetRandomQuote() (shasum string) GetRandomQuoteUrl() (url, hash string) TotalWords() int64 TotalQuotes() int64 TotalTopics() int64 TotalAuthors() int64 TotalFirstWords() int64 TotalSecondWords() int64 }
Click to show internal directories.
Click to hide internal directories.