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

Method BulkInputPosts

internal/repository/search.go:74–80  ·  view source on GitHub ↗
(ctx context.Context, posts []domain.PostSearch)

Source from the content-addressed store, hash-verified

72}
73
74func (s *searchRepository) BulkInputPosts(ctx context.Context, posts []domain.PostSearch) error {
75 var daoPosts []dao.PostSearch
76 for _, post := range posts {
77 daoPosts = append(daoPosts, s.toDaoPostSearch(post))
78 }
79 return s.dao.BulkInputPosts(ctx, daoPosts)
80}
81
82func (s *searchRepository) BulkInputUsers(ctx context.Context, users []domain.UserSearch) error {
83 var daoUsers []dao.UserSearch

Callers

nothing calls this directly

Calls 2

toDaoPostSearchMethod · 0.95
BulkInputPostsMethod · 0.65

Tested by

no test coverage detected