session.go 450 B

12345678910111213141516171819202122232425262728
  1. package goimap
  2. import (
  3. "context"
  4. "net"
  5. "time"
  6. )
  7. type Status int8
  8. const (
  9. UNAUTHORIZED Status = 1
  10. AUTHORIZED Status = 2
  11. SELECTED Status = 3
  12. LOGOUT Status = 4
  13. )
  14. type Session struct {
  15. Status Status
  16. Account string
  17. DeleteIds []int64
  18. Ctx context.Context
  19. Conn net.Conn
  20. InTls bool
  21. AliveTime time.Time
  22. CurrentPath string //当前选择的文件夹
  23. IN_IDLE bool // 是否处在IDLE中
  24. }