NewSimpleSessionStateProvider 创建简单 Session 状态提供者
(state *SessionState)
| 271 | |
| 272 | // NewSimpleSessionStateProvider 创建简单 Session 状态提供者 |
| 273 | func NewSimpleSessionStateProvider(state *SessionState) *SimpleSessionStateProvider { |
| 274 | return &SimpleSessionStateProvider{ |
| 275 | state: state, |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | // GetSessionState 获取 Session 状态 |
| 280 | func (sssp *SimpleSessionStateProvider) GetSessionState(ctx context.Context) (*SessionState, error) { |
no outgoing calls