general.go 740 B

123456789101112131415161718192021222324252627
  1. package config
  2. type IdentifyConfig struct {
  3. Os string `toml:"os"`
  4. Browser string `toml:"browser"`
  5. }
  6. type GeneralConfig struct {
  7. UserAgent string `toml:"user_agent"`
  8. FetchMessagesLimit int `toml:"fetch_messages_limit"`
  9. Mouse bool `toml:"mouse"`
  10. Timestamps bool `toml:"timestamps"`
  11. Identify IdentifyConfig `toml:"identify"`
  12. }
  13. func newGeneralConfig() GeneralConfig {
  14. return GeneralConfig{
  15. UserAgent: "Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0",
  16. FetchMessagesLimit: 50,
  17. Mouse: true,
  18. Timestamps: false,
  19. Identify: IdentifyConfig{
  20. Os: "Linux",
  21. Browser: "Firefox",
  22. },
  23. }
  24. }