29 lines
421 B
Go
29 lines
421 B
Go
package gopop
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
type Status int8
|
|
|
|
const (
|
|
UNAUTHORIZED Status = 1
|
|
TRANSACTION Status = 2
|
|
UPDATE Status = 3
|
|
)
|
|
|
|
type Session struct {
|
|
Status Status
|
|
User string
|
|
DeleteIds []int64
|
|
MessageIDs []int64
|
|
MessageMap map[int64]int64
|
|
MessageSizes map[int64]int
|
|
Ctx context.Context
|
|
Conn net.Conn
|
|
InTls bool
|
|
AliveTime time.Time
|
|
}
|