mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
refactor(http): api key cache handling (#1632)
This commit is contained in:
parent
0d53f7e5fc
commit
d13b421c42
6 changed files with 117 additions and 50 deletions
|
@ -11,7 +11,8 @@ import (
|
|||
type APIRepo interface {
|
||||
Store(ctx context.Context, key *APIKey) error
|
||||
Delete(ctx context.Context, key string) error
|
||||
GetKeys(ctx context.Context) ([]APIKey, error)
|
||||
GetAllAPIKeys(ctx context.Context) ([]APIKey, error)
|
||||
GetKey(ctx context.Context, key string) (*APIKey, error)
|
||||
}
|
||||
|
||||
type APIKey struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue