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

Function NewInMemoryService

pkg/session/inmemory.go:22–26  ·  view source on GitHub ↗

NewInMemoryService 创建内存 Session 服务

()

Source from the content-addressed store, hash-verified

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

Callers 11

mainFunction · 0.92
mainFunction · 0.92
TestInMemoryService_GetFunction · 0.85
TestInMemoryService_ListFunction · 0.85

Calls

no outgoing calls