MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / GetByGUID

Method GetByGUID

inventory/oauth_client.go:82–86  ·  view source on GitHub ↗
(ctx context.Context, guid string)

Source from the content-addressed store, hash-verified

80}
81
82func (c *oauthClientClient) GetByGUID(ctx context.Context, guid string) (*ent.OAuthClient, error) {
83 return c.client.OAuthClient.Query().
84 Where(oauthclient.GUID(guid), oauthclient.IsEnabled(true)).
85 First(ctx)
86}
87
88func (c *oauthClientClient) GetByGUIDWithGrants(ctx context.Context, guid string, uid int) (*ent.OAuthClient, error) {
89 stm := c.client.OAuthClient.Query().

Callers

nothing calls this directly

Calls 5

GUIDFunction · 0.92
IsEnabledFunction · 0.92
FirstMethod · 0.45
WhereMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected