Documentation ¶
Index ¶
- Variables
- func MapUnicodeSegmentation(original map[string]string) map[string]string
- func StringUnicodeSegmentation(original string) string
- type Service
- type Store
- func (s *Store) CleanupUsers(ctx context.Context, appID string, keepUserIDs []string) (int64, error)
- func (s *Store) DeleteUser(ctx context.Context, appID string, userID string) error
- func (s *Store) QueryUser(ctx context.Context, searchKeyword string, filters user.FilterOptions, ...) ([]apimodel.PageItemRef, error)
- func (s *Store) UpsertUsers(ctx context.Context, users []*model.SearchUserSource) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingCredential = apierrors.InternalError.WithReason("SearchDisabled").New("search database credential is not provided")
Functions ¶
func MapUnicodeSegmentation ¶
Types ¶
type Service ¶
func (*Service) DeleteUser ¶
func (*Service) QueryUser ¶
func (s *Service) QueryUser( ctx context.Context, searchKeyword string, filters user.FilterOptions, sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, error)
func (*Service) ReindexUser ¶
type Store ¶
type Store struct { AppID config.AppID SQLBuilder *searchdb.SQLBuilder SQLExecutor *searchdb.SQLExecutor }
func NewStore ¶
func NewStore( appID config.AppID, sqlBuilder *searchdb.SQLBuilder, sqlExecutor *searchdb.SQLExecutor, ) *Store
func (*Store) CleanupUsers ¶
func (*Store) DeleteUser ¶
func (*Store) QueryUser ¶
func (s *Store) QueryUser( ctx context.Context, searchKeyword string, filters user.FilterOptions, sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, error)
func (*Store) UpsertUsers ¶
Click to show internal directories.
Click to hide internal directories.