MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / CountUsersByInbound

Method CountUsersByInbound

internal/store/postgres/users.go:236–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234}
235
236func (s *UserStore) CountUsersByInbound() (map[string]int, error) {
237 rows, err := sqlcgen.New(s.db).CountUsersByInbound(context.Background())
238 if err != nil {
239 return nil, fmt.Errorf("count users by inbound: %w", err)
240 }
241 result := make(map[string]int, len(rows))
242 for _, r := range rows {
243 result[r.InboundID] = int(r.Count)
244 }
245 return result, nil
246}
247
248func (s *UserStore) DeleteUserInbound(id string) error {
249 result, err := sqlcgen.New(s.db).DeleteUserInboundByID(context.Background(), id)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
CountUsersByInboundMethod · 0.65

Tested by

no test coverage detected