MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / SearchComments

Method SearchComments

internal/repository/search.go:40–43  ·  view source on GitHub ↗
(ctx context.Context, keywords []string)

Source from the content-addressed store, hash-verified

38}
39
40func (s *searchRepository) SearchComments(ctx context.Context, keywords []string) ([]domain.CommentSearch, error) {
41 comments, err := s.dao.SearchComments(ctx, keywords)
42 return s.toDomainCommentSearch(comments), err
43}
44
45func (s *searchRepository) SearchPosts(ctx context.Context, keywords []string) ([]domain.PostSearch, error) {
46 posts, err := s.dao.SearchPosts(ctx, keywords)

Callers

nothing calls this directly

Calls 2

toDomainCommentSearchMethod · 0.95
SearchCommentsMethod · 0.65

Tested by

no test coverage detected