service

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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