Documentation ¶
Index ¶
- Constants
- Variables
- func CursorToSearchAfter(cursor model.PageCursor) (searchAfter interface{}, err error)
- func MakeSearchBody(appID config.AppID, searchKeyword string, sortOption libuser.SortOption) map[string]interface{}
- func NewClient(credentials *config.ElasticsearchCredentials) *elasticsearch.Client
- func RawToSource(raw *model.ElasticsearchUserRaw) *model.ElasticsearchUserSource
- func SortToCursor(sort interface{}) (cursor model.PageCursor, err error)
- type Logger
- type Service
- type Sink
- type Stats
- type UserQueries
Constants ¶
View Source
const IndexNameUser = "user"
View Source
const PrefixMinChars = 3
Variables ¶
Functions ¶
func CursorToSearchAfter ¶
func CursorToSearchAfter(cursor model.PageCursor) (searchAfter interface{}, err error)
func MakeSearchBody ¶
func NewClient ¶
func NewClient(credentials *config.ElasticsearchCredentials) *elasticsearch.Client
func RawToSource ¶
func RawToSource(raw *model.ElasticsearchUserRaw) *model.ElasticsearchUserSource
func SortToCursor ¶
func SortToCursor(sort interface{}) (cursor model.PageCursor, err error)
Types ¶
type Service ¶
type Service struct { AppID config.AppID Client *elasticsearch.Client Users UserQueries OAuth *identityoauth.Store LoginID *identityloginid.Store TaskQueue task.Queue }
func (*Service) QueryUser ¶
func (s *Service) QueryUser( searchKeyword string, sortOption libuser.SortOption, pageArgs graphqlutil.PageArgs, ) ([]model.PageItemRef, *Stats, error)
type UserQueries ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.