mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-31 09:57:08 +02:00
auth moved from websockets to session.
This commit is contained in:
parent
3ea979ed47
commit
c10b2212d1
8 changed files with 65 additions and 53 deletions
|
@ -6,14 +6,16 @@ import (
|
|||
"github.com/rs/zerolog/log"
|
||||
|
||||
"demodesk/neko/internal/types"
|
||||
"demodesk/neko/internal/config"
|
||||
"demodesk/neko/internal/utils"
|
||||
)
|
||||
|
||||
func New(capture types.CaptureManager) *SessionManagerCtx {
|
||||
func New(capture types.CaptureManager, config *config.Session) *SessionManagerCtx {
|
||||
return &SessionManagerCtx{
|
||||
logger: log.With().Str("module", "session").Logger(),
|
||||
host: nil,
|
||||
capture: capture,
|
||||
config: config,
|
||||
members: make(map[string]*SessionCtx),
|
||||
emmiter: events.New(),
|
||||
}
|
||||
|
@ -23,6 +25,7 @@ type SessionManagerCtx struct {
|
|||
logger zerolog.Logger
|
||||
host types.Session
|
||||
capture types.CaptureManager
|
||||
config *config.Session
|
||||
members map[string]*SessionCtx
|
||||
emmiter events.EventEmmiter
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue