Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptedAnswerSearch ¶
type AcceptedAnswerSearch struct {
// contains filtered or unexported fields
}
func NewAcceptedAnswerSearch ¶
func NewAcceptedAnswerSearch(repo search_common.SearchRepo) *AcceptedAnswerSearch
func (*AcceptedAnswerSearch) Parse ¶
func (s *AcceptedAnswerSearch) Parse(dto *schema.SearchDTO) (ok bool)
func (*AcceptedAnswerSearch) Search ¶
func (s *AcceptedAnswerSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type AnswerSearch ¶
type AnswerSearch struct {
// contains filtered or unexported fields
}
func NewAnswerSearch ¶
func NewAnswerSearch(repo search_common.SearchRepo) *AnswerSearch
func (*AnswerSearch) Search ¶
func (s *AnswerSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type AnswersSearch ¶
type AnswersSearch struct {
// contains filtered or unexported fields
}
func NewAnswersSearch ¶
func NewAnswersSearch(repo search_common.SearchRepo) *AnswersSearch
func (*AnswersSearch) Search ¶
func (s *AnswersSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type AuthorSearch ¶
type AuthorSearch struct {
// contains filtered or unexported fields
}
func NewAuthorSearch ¶
func NewAuthorSearch(repo search_common.SearchRepo, userCommon *usercommon.UserCommon) *AuthorSearch
func (*AuthorSearch) Parse ¶
func (s *AuthorSearch) Parse(dto *schema.SearchDTO) (ok bool)
Parse example: "user:12345" -> {exp="" w="12345"}
func (*AuthorSearch) Search ¶
func (s *AuthorSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type InQuestionSearch ¶
type InQuestionSearch struct {
// contains filtered or unexported fields
}
func NewInQuestionSearch ¶
func NewInQuestionSearch(repo search_common.SearchRepo) *InQuestionSearch
func (*InQuestionSearch) Search ¶
func (s *InQuestionSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type NotAcceptedQuestion ¶
type NotAcceptedQuestion struct {
// contains filtered or unexported fields
}
func NewNotAcceptedQuestion ¶
func NewNotAcceptedQuestion(repo search_common.SearchRepo) *NotAcceptedQuestion
func (*NotAcceptedQuestion) Parse ¶
func (s *NotAcceptedQuestion) Parse(dto *schema.SearchDTO) (ok bool)
func (*NotAcceptedQuestion) Search ¶
func (s *NotAcceptedQuestion) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type ObjectSearch ¶
type ObjectSearch struct {
// contains filtered or unexported fields
}
func NewObjectSearch ¶
func NewObjectSearch(repo search_common.SearchRepo) *ObjectSearch
func (*ObjectSearch) Search ¶
func (s *ObjectSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type QuestionSearch ¶
type QuestionSearch struct {
// contains filtered or unexported fields
}
func NewQuestionSearch ¶
func NewQuestionSearch(repo search_common.SearchRepo) *QuestionSearch
func (*QuestionSearch) Search ¶
func (s *QuestionSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type ScoreSearch ¶
type ScoreSearch struct {
// contains filtered or unexported fields
}
func NewScoreSearch ¶
func NewScoreSearch(repo search_common.SearchRepo) *ScoreSearch
func (*ScoreSearch) Search ¶
func (s *ScoreSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type TagSearch ¶
type TagSearch struct { Extra schema.GetTagPageResp // contains filtered or unexported fields }
func NewTagSearch ¶
func NewTagSearch(repo search_common.SearchRepo, tagRepo tagcommon.TagRepo, followCommon activity_common.FollowRepo) *TagSearch
type ViewsSearch ¶
type ViewsSearch struct {
// contains filtered or unexported fields
}
func NewViewsSearch ¶
func NewViewsSearch(repo search_common.SearchRepo) *ViewsSearch
func (*ViewsSearch) Search ¶
func (s *ViewsSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
type WithinSearch ¶
type WithinSearch struct {
// contains filtered or unexported fields
}
func NewWithinSearch ¶
func NewWithinSearch(repo search_common.SearchRepo) *WithinSearch
func (*WithinSearch) Search ¶
func (s *WithinSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)
Click to show internal directories.
Click to hide internal directories.