2021-03-24 01:28:06 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
type TwitterConfig struct {
|
2022-11-08 04:23:53 +00:00
|
|
|
Enabled bool `yaml:"enabled"`
|
|
|
|
ConsumerKey string `yaml:"consumer_key"`
|
|
|
|
ConsumerSecret string `yaml:"consumer_secret"`
|
|
|
|
AccessToken string `yaml:"access_token"`
|
|
|
|
AccessSecret string `yaml:"access_secret"`
|
2021-03-24 01:28:06 +00:00
|
|
|
|
2022-11-08 04:23:53 +00:00
|
|
|
Filters []Filter `yaml:"filters"`
|
2021-03-24 01:28:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Filter struct {
|
2022-11-08 04:23:53 +00:00
|
|
|
Follows []string `yaml:"follows"`
|
|
|
|
FollowStrict bool `yaml:"follow_strict"`
|
|
|
|
Locations []string `yaml:"locations"`
|
|
|
|
Tracks []string `yaml:"tracks"`
|
|
|
|
Webhooks []string `yaml:"webhooks"`
|
2021-03-24 01:28:06 +00:00
|
|
|
}
|