MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / withUserEagerLoading

Function withUserEagerLoading

inventory/user.go:596–606  ·  view source on GitHub ↗
(ctx context.Context, q *ent.UserQuery)

Source from the content-addressed store, hash-verified

594}
595
596func withUserEagerLoading(ctx context.Context, q *ent.UserQuery) *ent.UserQuery {
597 if v, ok := ctx.Value(LoadUserGroup{}).(bool); ok && v {
598 q.WithGroup(func(gq *ent.GroupQuery) {
599 withGroupEagerLoading(ctx, gq)
600 })
601 }
602 if v, ok := ctx.Value(LoadUserPasskey{}).(bool); ok && v {
603 q.WithPasskey()
604 }
605 return q
606}
607
608func digestPassword(password string) (string, error) {
609 //生成16位 Salt

Callers 9

withShareEagerLoadingFunction · 0.85
withFileEagerLoadingFunction · 0.85
withTaskEagerLoadingFunction · 0.85
GetByEmailMethod · 0.85
GetByIDMethod · 0.85
GetActiveByIDMethod · 0.85
GetActiveByDavAccountMethod · 0.85
SearchActiveMethod · 0.85
ListUsersMethod · 0.85

Calls 4

withGroupEagerLoadingFunction · 0.85
WithGroupMethod · 0.80
WithPasskeyMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected