Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

config.go 671B

1234567891011121314151617181920212223242526
  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. MaxConns int `yaml:"max-conns"`
  18. ConnMaxLifetime time.Duration `yaml:"conn-max-lifetime"`
  19. // XXX these are copied from elsewhere in the config:
  20. ExpireTime time.Duration
  21. TrackAccountMessages bool
  22. }