Download sdk/cliproxy/auth/store.go from shimen/ShinAPI: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/sdk/cliproxy/auth/store.go
- Command line
-
hf download hf://spaces/shimen/ShinAPI/sdk/cliproxy/auth/store.go
-
curl -L -o store.go https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/sdk/cliproxy/auth/store.go
459 Bytes
| package auth | |
| import "context" | |
| // Store abstracts persistence of Auth state across restarts. | |
| type Store interface { | |
| // List returns all auth records stored in the backend. | |
| List(ctx context.Context) ([]*Auth, error) | |
| // Save persists the provided auth record, replacing any existing one with same ID. | |
| Save(ctx context.Context, auth *Auth) (string, error) | |
| // Delete removes the auth record identified by id. | |
| Delete(ctx context.Context, id string) error | |
| } | |