Documentation ¶
Overview ¶
Package rules provides means to manage rules in persistence
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomData ¶
CustomData is what could be sent in, data of any shape
type ExecutableRule ¶
ExecutableRule contains all needed to evaluate a Transaction
type MongoStore ¶
type MongoStore struct {
// contains filtered or unexported fields
}
MongoStore holds all needed to manage rules
func (*MongoStore) Read ¶
func (m *MongoStore) Read(ctx context.Context, userID string, entityID string) ([]ExecutableRule, error)
Read queries the DB and returns all applicable rules
type NewRule ¶
type NewRule struct { Name string UserID string Definition string IsActive bool Included []string Excluded []string }
NewRule contains all needed to insert a new rule
Click to show internal directories.
Click to hide internal directories.