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 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. }