MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / GetByEmail

Method GetByEmail

server-source-code/internal/store/users.go:90–98  ·  view source on GitHub ↗

GetByEmail returns a user by email.

(ctx context.Context, email string)

Source from the content-addressed store, hash-verified

88
89// GetByEmail returns a user by email.
90func (s *UsersStore) GetByEmail(ctx context.Context, email string) (*models.User, error) {
91 d := s.db.DB(ctx)
92 u, err := d.Queries.GetUserByEmail(ctx, email)
93 if err != nil {
94 return nil, err
95 }
96 out := dbUserToModel(u)
97 return &out, nil
98}
99
100// GetByOidcSub returns a user by OIDC subject.
101func (s *UsersStore) GetByOidcSub(ctx context.Context, oidcSub string) (*models.User, error) {

Callers

nothing calls this directly

Calls 3

dbUserToModelFunction · 0.85
DBMethod · 0.65
GetUserByEmailMethod · 0.65

Tested by

no test coverage detected