search

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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) Parse

func (s *AnswerSearch) Parse(dto *schema.SearchDTO) (ok bool)

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) Parse

func (s *AnswersSearch) Parse(dto *schema.SearchDTO) (ok bool)

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) Parse

func (s *InQuestionSearch) Parse(dto *schema.SearchDTO) (ok bool)

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) Parse

func (s *ObjectSearch) Parse(dto *schema.SearchDTO) (ok bool)

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) Parse

func (s *QuestionSearch) Parse(dto *schema.SearchDTO) (ok bool)

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) Parse

func (s *ScoreSearch) Parse(dto *schema.SearchDTO) (ok bool)

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

func (*TagSearch) Parse

func (ts *TagSearch) Parse(dto *schema.SearchDTO) (ok bool)

Parse example: "[tag]hello" -> {exp="tag" w="hello"}

func (*TagSearch) Search

func (ts *TagSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)

type ViewsSearch

type ViewsSearch struct {
	// contains filtered or unexported fields
}

func NewViewsSearch

func NewViewsSearch(repo search_common.SearchRepo) *ViewsSearch

func (*ViewsSearch) Parse

func (s *ViewsSearch) Parse(dto *schema.SearchDTO) (ok bool)

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) Parse

func (s *WithinSearch) Parse(dto *schema.SearchDTO) (ok bool)

func (*WithinSearch) Search

func (s *WithinSearch) Search(ctx context.Context) (resp []schema.SearchResp, total int64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL