Files
juwan-backend/app/chat/api/internal/svc/serviceContext.go
T
2026-04-24 21:02:07 +08:00

23 lines
436 B
Go

package svc
import (
"juwan-backend/app/chat/api/internal/config"
"juwan-backend/app/chat/chatcore"
"github.com/wwweww/go-wst/stateless"
)
type ServiceContext struct {
Config config.Config
Store *chatcore.Store
MsgStore *stateless.MemoryStore
}
func NewServiceContext(c config.Config) *ServiceContext {
return &ServiceContext{
Config: c,
Store: chatcore.NewStore(),
MsgStore: stateless.NewMemoryStore(),
}
}