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

Function NewSimpleSessionStateProvider

pkg/context/auto_inject.go:273–277  ·  view source on GitHub ↗

NewSimpleSessionStateProvider 创建简单 Session 状态提供者

(state *SessionState)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by 1