Documentation ¶
Index ¶
Constants ¶
View Source
const ( DYNAMIC_RULE = "dynamic" STATIC_RULE = "static" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { App *AppConfig `yaml:"app"` Source *SourceConfig `yaml:"source"` Scrapper *ScrapperConfig `yaml:"scrapper"` Bot *BotConfig `yaml:"bot"` Logger *LoggerConfig `yaml:"logger"` DataLoader *DataLoaderConfig `yaml:"dataLoader"` Events *EventsConfig `yaml:"events"` Kafka *KafkaConfig `yaml:"kafka"` Mongo *MongoConfig `yaml:"mongo"` Rules []Rule }
func GetConfig ¶
func GetConfig() *Configuration
func (*Configuration) AppPath ¶
func (c *Configuration) AppPath() string
func (*Configuration) BotConsumerGroupId ¶
func (c *Configuration) BotConsumerGroupId() string
func (*Configuration) ChannelTimeout ¶
func (c *Configuration) ChannelTimeout() time.Duration
func (*Configuration) DataLoaderConsumerGroupId ¶
func (c *Configuration) DataLoaderConsumerGroupId() string
func (*Configuration) HasPredefinedEvents ¶
func (c *Configuration) HasPredefinedEvents() bool
type DataLoaderConfig ¶
type DataLoaderConfig struct {
KafkaConsumerGroupId string `yaml:"kafkaConsumerGroupId"`
}
type EventsConfig ¶
type KafkaConfig ¶
type LoggerConfig ¶
type LoggerConfig struct {
CompletionStep int `yaml:"completionStep"`
}
type MongoConfig ¶
type MongoConfig struct { Hostname string `yaml:"hostname"` Port int `yaml:"port"` Database string `yaml:"database"` ReplicaSet string `yaml:"replicaSet"` DirectConnection bool `yaml:"directConnection"` MatchesCollection string `yaml:"matchesCollection"` AssetsCollection string `yaml:"assetsCollection"` UsersCollection string `yaml:"usersCollection"` TransactionsCollection string `yaml:"transactionsCollection"` }
type ScrapperConfig ¶
type ScrapperConfig struct { Url string `yaml:"url"` ResultsPath string `yaml:"resultsPath"` FixturesPath string `yaml:"fixturesPath"` MatchRowsSelector string `yaml:"matchRowsSelector"` HrefPattern string `yaml:"hrefPattern"` MoreCommentsSelector string `yaml:"moreCommentsSelector"` MoreCommentsTextSelector string `yaml:"moreCommentsTextSelector"` CommentarySelector string `yaml:"commentarySelector"` CommentaryParams string `yaml:"commentaryParams"` InfoSelector string `yaml:"infoSelector"` InfoParams string `yaml:"infoParams"` LineupsSelector string `yaml:"lineupsSelector"` HomeTeamSelector string `yaml:"homeTeamSelector"` AwaySelector string `yaml:"awaySelector"` AwayTeamSelector string `yaml:"awayTeamSelector"` SubstituteSelector string `yaml:"substituteSelector"` LineupsParams string `yaml:"lineupsParams"` UrlProperty string `yaml:"urlProperty"` CommentaryStartFlag string `yaml:"commentaryStartFlag"` CommentaryEndFlag string `yaml:"commentaryEndFlag"` LineupStartFlag string `yaml:"lineupStartFlag"` SubstitutesStartFlag string `yaml:"substitutesStartFlag"` }
type SourceConfig ¶
Click to show internal directories.
Click to hide internal directories.