NewAPIKeyAuthenticator 创建 API Key 认证器
(store APIKeyStore)
| 43 | |
| 44 | // NewAPIKeyAuthenticator 创建 API Key 认证器 |
| 45 | func NewAPIKeyAuthenticator(store APIKeyStore) *APIKeyAuthenticator { |
| 46 | return &APIKeyAuthenticator{ |
| 47 | store: store, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // Method 返回认证方法类型 |
| 52 | func (a *APIKeyAuthenticator) Method() AuthMethod { |
no outgoing calls
no test coverage detected