MemoryAPIKeyStore 内存 API Key 存储(用于测试和开发)
| 107 | |
| 108 | // MemoryAPIKeyStore 内存 API Key 存储(用于测试和开发) |
| 109 | type MemoryAPIKeyStore struct { |
| 110 | mu sync.RWMutex |
| 111 | keys map[string]*APIKeyInfo |
| 112 | } |
| 113 | |
| 114 | // NewMemoryAPIKeyStore 创建内存存储 |
| 115 | func NewMemoryAPIKeyStore() *MemoryAPIKeyStore { |
nothing calls this directly
no outgoing calls
no test coverage detected