Smail/backend/internal/gopop/session.go
smail bf2d7b6e2d
Some checks are pending
Security Checks / security (push) Waiting to run
修复POP3协议会话和删除行为
2026-09-06 05:38:09 +08:00

28 lines
375 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
Ctx context.Context
Conn net.Conn
InTls bool
AliveTime time.Time
}