NewInMemoryService 创建内存 Session 服务
()
| 20 | |
| 21 | // NewInMemoryService 创建内存 Session 服务 |
| 22 | func NewInMemoryService() *InMemoryService { |
| 23 | return &InMemoryService{ |
| 24 | sessions: make(map[string]*inMemorySession), |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | // Create 创建新会话 |
| 29 | func (s *InMemoryService) Create(ctx context.Context, req *CreateRequest) (Session, error) { |
no outgoing calls