Documentation ¶
Index ¶
- func AppendIdentifiers(set1 []model.TupleType, set2 []model.TupleType) []model.TupleType
- func ContainedByFirst(first []model.TupleType, second []model.TupleType) bool
- func EqualSets(first []model.TupleType, second []model.TupleType) bool
- func GetIndex(identifiers []model.TupleType, thisIdr model.TupleType) int
- func IntersectionIdentifiers(first []model.TupleType, second []model.TupleType) []model.TupleType
- func NewRtcModified(tuple model.Tuple) model.RtcModified
- func SecondMinusFirst(first []model.TupleType, second []model.TupleType) []model.TupleType
- func UnionIdentifiers(first []model.TupleType, second []model.TupleType) []model.TupleType
- func UnionOfOtherTwoContainsAllFromFirst(first []model.TupleType, second []model.TupleType, third []model.TupleType) bool
- type Network
- type RtcOprn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIdentifiers ¶
AppendIdentifiers ... Append identifiers from set2 to set1
func ContainedByFirst ¶
ContainedByFirst ... true if second is a subset of first
func IntersectionIdentifiers ¶
IntersectionIdentifiers .. intersection of the two sets
func NewRtcModified ¶ added in v0.1.1
func NewRtcModified(tuple model.Tuple) model.RtcModified
func SecondMinusFirst ¶
SecondMinusFirst ... returns elements in the second that arent in the first
func UnionIdentifiers ¶
UnionIdentifiers ... union of the first and second sets
Types ¶
type Network ¶
type Network interface { AddRule(model.Rule) error String() string RemoveRule(string) model.Rule GetRules() []model.Rule //changedProps are the properties that changed in a previous action Assert(ctx context.Context, rs model.RuleSession, tuple model.Tuple, changedProps map[string]bool, mode RtcOprn) //mode can be one of retract, modify, delete Retract(ctx context.Context, tuple model.Tuple, changedProps map[string]bool, mode RtcOprn) GetAssertedTuple(key model.TupleKey) model.Tuple GetAssertedTupleByStringKey(key string) model.Tuple //RtcTransactionHandler RegisterRtcTransactionHandler(txnHandler model.RtcTransactionHandler, txnContext interface{}) // contains filtered or unexported methods }
Network ... the rete network
Click to show internal directories.
Click to hide internal directories.