Documentation
¶
Overview ¶
Package eligibility evaluates explicit action rules using supplied current facts. It has no identity, verification, catalog or network dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrConflict = errors.New("eligibility_conflict")
var ErrForbidden = errors.New("eligibility_forbidden")
var ErrRule = errors.New("invalid_eligibility_rule")
Functions ¶
Types ¶
type CachedRules ¶
type CachedRules struct {
Repo Repository
Now func() time.Time
// contains filtered or unexported fields
}
CachedRules keeps effective rules for at most five seconds. All local writes invalidate the cache, including writes whose commit result is unknown.
func (*CachedRules) Invalidate ¶
func (c *CachedRules) Invalidate()
type Configuration ¶
type Service ¶
type Service struct {
Repo Repository
Now func() time.Time
}