MCPcopy Create free account
hub / github.com/astercloud/aster / MemoryAPIKeyStore

Struct MemoryAPIKeyStore

server/auth/apikey.go:109–112  ·  view source on GitHub ↗

MemoryAPIKeyStore 内存 API Key 存储(用于测试和开发)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected