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

Method SearchPosts

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

Source from the content-addressed store, hash-verified

43}
44
45func (s *searchRepository) SearchPosts(ctx context.Context, keywords []string) ([]domain.PostSearch, error) {
46 posts, err := s.dao.SearchPosts(ctx, keywords)
47 return s.toDomainPostSearch(posts), err
48}
49
50func (s *searchRepository) SearchUsers(ctx context.Context, keywords []string) ([]domain.UserSearch, error) {
51 users, err := s.dao.SearchUsers(ctx, keywords)

Callers

nothing calls this directly

Calls 2

toDomainPostSearchMethod · 0.95
SearchPostsMethod · 0.65

Tested by

no test coverage detected