您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

config.go 563B

123456789101112131415161718192021222324
  1. // Copyright (c) 2020 Shivaram Lingamneni
  2. // released under the MIT license
  3. package mysql
  4. import (
  5. "time"
  6. )
  7. type Config struct {
  8. // these are intended to be written directly into the config file:
  9. Enabled bool
  10. Host string
  11. Port int
  12. SocketPath string `yaml:"socket-path"`
  13. User string
  14. Password string
  15. HistoryDatabase string `yaml:"history-database"`
  16. Timeout time.Duration
  17. // XXX these are copied from elsewhere in the config:
  18. ExpireTime time.Duration
  19. TrackAccountMessages bool
  20. }