GetAPIKeyByKey retrieves an API key by its key string Parameters: - ctx: The context for the operation - key: The API key string Returns: - *model.APIKey: The API key if found - error: An error if the operation fails
(ctx context.Context, key string)
| 59 | // - *model.APIKey: The API key if found |
| 60 | // - error: An error if the operation fails |
| 61 | func (l *LedgerForge) GetAPIKeyByKey(ctx context.Context, key string) (*model.APIKey, error) { |
| 62 | return l.datasource.GetAPIKey(ctx, key) |
| 63 | } |
| 64 | |
| 65 | // UpdateLastUsed updates the last used timestamp of an API key |
| 66 | // |