Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertMeow ¶
InsertMeow inserts the type into search engine
func SearchMeows ¶
func SearchMeows(ctx context.Context, query string, skip uint64, take uint64) ([]schema.Meow, error)
SearchMeows seeks for Meows into search engine
func SetRepository ¶
func SetRepository(repository Repository)
SetRepository sets the repository through dependency injection
Types ¶
type ElasticRepository ¶
type ElasticRepository struct {
// contains filtered or unexported fields
}
ElasticRepository implements the Repository interface
func NewElastic ¶
func NewElastic(url string) (*ElasticRepository, error)
NewElastic connects to elasticsearch engine
func (*ElasticRepository) Close ¶
func (r *ElasticRepository) Close()
Close closes the connection with Elasticsearch
func (*ElasticRepository) InsertMeow ¶
InsertMeow inserts a new meow into search engine
Click to show internal directories.
Click to hide internal directories.