base-golang/pkg/websocket/peer/session.go
2024-07-23 10:23:43 +08:00

17 lines
196 B
Go

package peer
import "time"
type Session struct {
Conn Connection
Time time.Time
}
func NewSession(conn Connection) *Session {
s := &Session{
Conn: conn,
Time: time.Now(),
}
return s
}