Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Search(context.Context, *SearchRequest) ([]*SearchHits, error) SearchLatest(context.Context, *SearchRequest) ([]*SearchHits, error) }
type SearchHits ¶
type SearchRequest ¶
type SearchResponse ¶
type SearchResponse struct {
Hits []*SearchHits
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repository Repository) *Service
func (*Service) Search ¶
func (s *Service) Search(ctx context.Context, req *SearchRequest) (*SearchResponse, error)
Click to show internal directories.
Click to hide internal directories.