InMemoryService 内存实现的 Session 服务 适用于开发和测试环境
| 14 | // InMemoryService 内存实现的 Session 服务 |
| 15 | // 适用于开发和测试环境 |
| 16 | type InMemoryService struct { |
| 17 | mu sync.RWMutex |
| 18 | sessions map[string]*inMemorySession |
| 19 | } |
| 20 | |
| 21 | // NewInMemoryService 创建内存 Session 服务 |
| 22 | func NewInMemoryService() *InMemoryService { |
nothing calls this directly
no outgoing calls
no test coverage detected