Documentation ¶
Index ¶
Constants ¶
View Source
const (
ScoreSort = internal.ScoreSorter
)
Variables ¶
View Source
var Sorters = map[int]esp.EsSorter{ ScoreSort: (*esp.ScoreSorter)(nil), }
Functions ¶
This section is empty.
Types ¶
type UserEsModel ¶
type UserEsModel interface {
SearchUser(ctx context.Context, name string, popts *paginator.PaginationOptions, sorter int) ([]*internal.User, int64, error)
}
func NewUserModel ¶
func NewUserModel(db string, es config.ElasticsearchConf) UserEsModel
Click to show internal directories.
Click to hide internal directories.