Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( reindex.DependencySet, elasticsearch.DependencySet, pgsearch.DependencySet, wire.Struct(new(Service), "*"), )
View Source
var ErrSearchDisabled = apierrors.InternalError.WithReason("SearchDisabled").New("Search disabled")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { SearchConfig *config.SearchConfig ElasticsearchService *elasticsearch.Service PGSearchService *pgsearch.Service }
func (*Service) QueryUser ¶
func (s *Service) QueryUser( ctx context.Context, searchKeyword string, filterOptions user.FilterOptions, sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, *Stats, error)
type Stats ¶
type Stats struct {
TotalCount *int
}
func StatsFromElasticsearch ¶
func StatsFromElasticsearch(s *elasticsearch.Stats) *Stats
Click to show internal directories.
Click to hide internal directories.