Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InquiryMeow ¶
func InquiryMeow(ctx context.Context, query string, skip uint64, take uint64) ([]schema.Meow, error)
InquiryMeow - InquiryMeow implementation
func InsertMeow ¶
InsertMeow - InsertMeow implementation
func SetRepository ¶
func SetRepository(repository Repository)
SetRepository - set the repository connection
Types ¶
type ElasticRepository ¶
type ElasticRepository struct {
// contains filtered or unexported fields
}
ElasticRepository keeps the elasticsearch client reference
func NewElastic ¶
func NewElastic(url string) (*ElasticRepository, error)
NewElastic created a new connection with ElasticSearch and return it
func (*ElasticRepository) Close ¶
func (r *ElasticRepository) Close()
Close the connection with ElasticSearch
func (*ElasticRepository) InquiryMeow ¶
func (r *ElasticRepository) InquiryMeow(ctx context.Context, query string, skip uint64, take uint64) ([]schema.Meow, error)
InquiryMeow return the meows finds eventually for the query provided
func (*ElasticRepository) InsertMeow ¶
InsertMeow performs an insert on ElasticSearch
Click to show internal directories.
Click to hide internal directories.