Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvaluationInterface ¶
type EvaluationInterface interface {
Evaluate(posts []*redditJson.RedditPost) error
}
type MatchingEvaluationResult ¶
type MatchingEvaluationResult struct { ChannelID int RuleID int PostID int Post *redditJson.RedditPost }
type RuleEvaluation ¶
type RuleEvaluation struct { Store dbstore.Store EvaluateResponseChannel chan *MatchingEvaluationResult }
func NewRuleEvaluator ¶
func NewRuleEvaluator(store dbstore.Store) *RuleEvaluation
func (*RuleEvaluation) Evaluate ¶
func (e *RuleEvaluation) Evaluate( ctx ctx.Ctx, posts []*redditJson.RedditPost, resultChannel chan *MatchingEvaluationResult, ) error
Click to show internal directories.
Click to hide internal directories.