Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchHandler ¶
type SearchHandler interface {
// contains filtered or unexported methods
}
func NewCaseHandler ¶
func NewCaseHandler(caseRepo repository.CaseRepo) SearchHandler
func NewQuestionHandler ¶
func NewQuestionHandler(questionRepo repository.QuestionRepo) SearchHandler
func NewQuestionSetHandler ¶
func NewQuestionSetHandler(questionSetRepo repository.QuestionSetRepo) SearchHandler
func NewSkillHandler ¶
func NewSkillHandler( skillRepo repository.SkillRepo) SearchHandler
type SearchService ¶
type SearchService interface { // Search 出于长远考虑,这里你用 expr 来代表搜索的表达式,后期我们会考虑支持类似 github 那种复杂的搜索表达式 Search(ctx context.Context, offset, limit int, expr string) (*domain.SearchResult, error) }
func NewSearchSvc ¶
func NewSearchSvc( questionRepo repository.QuestionRepo, questionSetRepo repository.QuestionSetRepo, skillRepo repository.SkillRepo, caseRepo repository.CaseRepo, ) SearchService
type SyncService ¶
type SyncService interface {
Input(ctx context.Context, index string, docID string, data string) error
}
func NewSyncSvc ¶
func NewSyncSvc(anyRepo repository.AnyRepo) SyncService
Click to show internal directories.
Click to hide internal directories.