Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Searcher ¶
type Searcher interface { TweetsSearcher UsersSearcher }
Searcher is interface which defines all full text search functions used in system. All implementations of different types of search engines should implement these methods.
func NewElasticsearchSearch ¶
func NewElasticsearchSearch(config config.ElasticsearchConfigProvider) Searcher
NewElasticsearchSearch connects to Elasticsearch and returns new instance of struct which implements Searcher functions.
func NewFakeSearch ¶
func NewFakeSearch() Searcher
NewFakeSearch creates new instance of fake searcher which imitates searching values. Implements all Searcher methods but each of them is doing nothing.
type TweetsSearcher ¶
TweetsSearcher is interface which defines all full text search functions which are connected with tweets.
type UsersSearcher ¶
UsersSearcher is interface which defines all full text search functions which are connected with users.