Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Comcast/rulio
/ functions
Functions
1,122 in github.com/Comcast/rulio
⨍
Functions
1,122
◇
Types & classes
159
↓ 7 callers
Function
protest
(response, message)
examples/stockfs.py:52
↓ 7 callers
Function
protest
(response, message)
examples/imdbfs.py:50
↓ 7 callers
Function
protest
(response, message)
examples/weatherfs.py:44
↓ 6 callers
Function
CodeQueryFromMap
(ctx *Context, m map[string]interface{})
core/query.go:288
↓ 6 callers
Function
CoerceFakeFloats
CoerceFakeFloats will make ints out of floats when possible. Since al JSON all numbers are floats, big "integers" can cause trouble. Example: millise
core/util.go:426
↓ 6 callers
Method
Control
Control atomically gets the System's controls.
sys/system.go:285
↓ 6 callers
Method
Count
(ctx *Context)
core/state.go:31
↓ 6 callers
Function
Gorep
Gorep returns a string that represents the given thing in Go -- except for plain strings. This function is used in logging generic data. All log rec
core/util.go:342
↓ 6 callers
Method
Match
Match takes a pattern and a fact built from map[string]interface{} and []interface{} structures, along with an initial set of bindings (may be empty),
core/match.go:46
↓ 6 callers
Function
Matches
Matches provides backwards compatibility around the Matcher interface.
core/match.go:31
↓ 6 callers
Function
NewAccumulator
NewAccumulator returns an Accumulator with the given size.
core/util.go:276
↓ 6 callers
Function
OrQueryFromMap
(ctx *Context, m map[string]interface{})
core/query.go:659
↓ 6 callers
Function
ParseMap
ParseMap tries to parse a Map from JSON.
core/util.go:528
↓ 6 callers
Function
ParseQuery
(ctx *Context, m map[string]interface{})
core/query.go:755
↓ 6 callers
Method
Partition
(account string)
crolt/cron.go:107
↓ 6 callers
Method
SearchFacts
SearchFacts finds facts that match the given pattern (JSON).
sys/system.go:1167
↓ 6 callers
Function
doQueryBenchmark
(b *testing.B, facts []string, query string, bss string)
core/query_test.go:285
↓ 6 callers
Function
genFacts
(ctx *Context, n int, width int, delta int, depth int, makeVar bool)
core/factgen.go:75
↓ 6 callers
Function
mapToPairs
mapToPairs generates an array of key/value Pairs in the map. We need to order the pairs and be able to write recursive functions to consume them.
core/patternindex.go:74
↓ 6 callers
Method
step
()
core/events.go:341
↓ 6 callers
Function
testMemStorageLoad
(t *testing.T, ctx *Context, s *MemStorage, loc string)
core/storage_mem_test.go:38
↓ 5 callers
Method
Add
Add adds a value to the cache.
core/cache.go:66
↓ 5 callers
Method
GetStats
(ctx *Context, loc string)
core/storage.go:51
↓ 5 callers
Function
InitialQueryResult
Make a QueryResult that contains one empty Bindings.
core/query.go:68
↓ 5 callers
Function
NewCache
(limit int, ttl time.Duration)
core/cache.go:31
↓ 5 callers
Function
NewSimpleLogger
(w io.Writer)
core/loggers.go:35
↓ 5 callers
Function
NowSecs
NowSecs returns the current time in UTC seconds.
core/util.go:186
↓ 5 callers
Function
ParseConfig
ParseConfig generates a DynamoDBConfig from a string. Input should look like region[:tableName[:(true|false)]], where the boolean indicates whether t
storage/dynamodb/dynamodb.go:253
↓ 5 callers
Method
Percentile
(p float64)
tools/sim/percentiles.go:54
↓ 5 callers
Method
RemFact
RemFact remove a fact from the given location. Returns the ID of the removed fact.
sys/system.go:954
↓ 5 callers
Function
fromJSON
(s string)
core/util_test.go:30
↓ 5 callers
Function
maybeInjectId
maybeInjectId might add KW_id:id to the given fact according to 'IdInjectionTime'. If it does, the function returns true; otherwise false.
core/state.go:80
↓ 5 callers
Function
pairFromStrings
(k, v string)
core/storage_mem_test.go:24
↓ 5 callers
Method
stopTimerLocked
()
cron/cron.go:398
↓ 5 callers
Function
testHTTPRequest
ToDo: More HTTPRequest tests.
core/http_test.go:31
↓ 4 callers
Method
Add
Add adds the thing to the Accumulator. If there isn't room, then room.
core/util.go:284
↓ 4 callers
Method
AddAll
AddAll adds all elements of the given set to the set.
core/util.go:85
↓ 4 callers
Function
AndQueryFromMap
(ctx *Context, m map[string]interface{})
core/query.go:583
↓ 4 callers
Function
BenchFactsEventsRules
(b *testing.B, rules []string, facts []string, events []string, actionsPerEvent int, resetTimerBeforeEvents
core/rules_test.go:190
↓ 4 callers
Function
CompileJavascript
compileJavascript compiles a code with specified libraries
core/javascript.go:118
↓ 4 callers
Method
Copy
Copy makes a shallow (except for DefaultControl) copy. The DefaultControl is Copy()ed.
core/vars.go:148
↓ 4 callers
Function
DefaultControl
DefaultControl makes a Control using Control.Defaults()
core/control.go:177
↓ 4 callers
Method
EnableRule
EnableRule enables or disables a rule.
sys/system.go:1032
↓ 4 callers
Function
ExtractRule
(ctx *Context, fact Map, required bool)
core/location.go:406
↓ 4 callers
Function
GetTimerHistory
GetTimerHistory gets a history for timers with the given name. 'after' is sequence number corresponding to 'Seq' in entries you've previously gotten.
core/timers.go:242
↓ 4 callers
Function
IsSortable
(xs []interface{})
core/patternindex.go:178
↓ 4 callers
Function
NamedTestingLocation
(t *testing.T, name string)
core/rules_test.go:98
↓ 4 callers
Function
NewDefaultCron
(db *bolt.DB)
crolt/cron.go:51
↓ 4 callers
Function
NewNoStorage
(ctx *Context)
core/storage_none.go:24
↓ 4 callers
Function
NewOutboundBreaker
NewOutboundBreaker makes a circuit breaker that will open if the Send rate exceeds the given rate (limit/interval).
core/breaker.go:137
↓ 4 callers
Function
NewStorage
(ctx *Context, config DynamoDBConfig)
storage/dynamodb/dynamodb.go:291
↓ 4 callers
Function
NewStringSet
NewStringSet does what you'd expect.
core/util.go:59
↓ 4 callers
Function
NowString
NowString returns a string representing the current time in UTC in the 'RFC3339Nano' representation.
core/util.go:203
↓ 4 callers
Method
Open
Open gets a location from the cache after first creating it. This function the top-level location cache API, and it uses 'CachedLocations.Get()' to d
sys/system.go:127
↓ 4 callers
Function
ParseJSON
ParseJSON parses a map from bytes.
core/util.go:36
↓ 4 callers
Function
ParseSchedule
(schedule string)
cron/generic.go:120
↓ 4 callers
Method
PeekStorage
PeekStorage is an unholy API to expose underlying storage. Used by 'service' for testing purposes.
sys/system.go:1510
↓ 4 callers
Method
Purge
Purge should never be called. ToDo: Remove this method from the interface, and kill the old mutation code.
storage/dynamodb/dynamodb.go:633
↓ 4 callers
Method
Rem
Rem deletes the job with the given ID. Returns true if the job was found and false if not.
cron/cron.go:532
↓ 4 callers
Function
RemProp
RemProp does what you'd think. The given id is the target id.
core/state.go:288
↓ 4 callers
Method
Resume
Resume restarts the instance's processing loop.
cron/cron.go:273
↓ 4 callers
Function
RuleTest
RuleTest loads the given facts and rule. Then submits the given events. If 'ctx' is nil, creates a 'SimpleSystem' and clears it.
core/rules_test.go:34
↓ 4 callers
Method
SearchPatternsMap
SearchPatternsMap searchs the index for patterns that match the given fact (or event).
core/patternindex.go:503
↓ 4 callers
Function
Send
(client *http.Client, name string, uri string, js []byte)
tools/sim/main.go:103
↓ 4 callers
Method
SetControl
(c *Control)
core/location.go:107
↓ 4 callers
Method
Start
Start starts up a goroutine that operates the cron system. This method returns after the goroutine is started. You need to call this method for the
cron/cron.go:217
↓ 4 callers
Function
SubstituteBindings
(ctx *Context, code string, bs Bindings)
core/actions.go:121
↓ 4 callers
Function
UUID
UUID generates what is likely a v4 UUID using data from `crypto/Reader`. If crypto/Reader fails, returns the empty string instead. The implementation
core/util.go:246
↓ 4 callers
Function
benchmarkSystemSimple
(b *testing.B, checking bool, unindexed bool)
sys/system_test.go:391
↓ 4 callers
Method
command
control is the low-level method for controlling the Cron instance. Gets the lock and sends the given command to the Cron's control channel.
cron/cron.go:241
↓ 4 callers
Function
getLocationsFromMap
(ctx *Context, m map[string]interface{})
core/query.go:255
↓ 4 callers
Method
loc
(loc string)
core/storage_mem.go:37
↓ 4 callers
Function
loggable
loggable determines if we should emit a log record at the given level. The decision is based on a call to 'getVerbosity(ctx)'. A message is loggable
core/log.go:401
↓ 4 callers
Function
protest
(ctx *core.Context, err error, w http.ResponseWriter)
service/httpd.go:391
↓ 4 callers
Function
radians
(num)
examples/libs/haversine.js:1
↓ 4 callers
Function
testRuleFromMapBad
(t *testing.T, tag string, js string)
core/rules_test.go:440
↓ 3 callers
Method
Add
(n int)
tools/sim/percentiles.go:32
↓ 3 callers
Method
Add
(ctx *Context, loc string, m *Pair)
core/storage_mem.go:58
↓ 3 callers
Function
DWIMURI
(ctx *core.Context, uri string)
service/service.go:68
↓ 3 callers
Function
DefaultParameters
()
core/vars.go:161
↓ 3 callers
Method
Destroy
Destroy closes the database and deletes it
storage/bolt/bolt.go:171
↓ 3 callers
Method
Do
Do will execute the given thunk only if the circuit breaker is open. Returns whether the function executed was attempted and, if it was, any error ge
core/breaker.go:162
↓ 3 callers
Method
Elapse
Elapsed computes the elapsed time in nanoseconds. This method does not change the timer state.
core/timers.go:57
↓ 3 callers
Method
EnableRule
(ctx *Context, id string, enable bool)
core/location.go:279
↓ 3 callers
Function
ExampleSystemControl
ExampleSystemControl uses default SystemControl fields, except for Timing, which is turned on.
sys/system.go:508
↓ 3 callers
Method
Exec
(ctx *Context)
core/javascript.go:453
↓ 3 callers
Function
ExtractTerms
ExtractTerms gets the terms from the given fact (or pattern). Since our TermIndex currently uses hash tables, it cannot do searches based on prefixes.
core/state_indexed.go:205
↓ 3 callers
Function
GenWalk
(e map[string]interface{})
tools/sim/gen.go:195
↓ 3 callers
Method
GetCachedLocations
GetCachedLocations gets the set of cached locations. Gets the System's mutex.
sys/system.go:689
↓ 3 callers
Function
GetCode
GetCode makes a single string from either a string or an array of strings. If the given thing is an array of strings, they are joined with newlines.
core/actions.go:522
↓ 3 callers
Method
GetLocationStats
GetLocationStats returns ServiceStats for the given location.
sys/system.go:1370
↓ 3 callers
Function
GetTimerNames
GetTimerNames returns a list of all know timer names.
core/timers.go:276
↓ 3 callers
Function
HaveProc
()
core/breaker.go:595
↓ 3 callers
Method
Id
()
core/context.go:152
↓ 3 callers
Function
IsVariable
(s string)
core/util.go:580
↓ 3 callers
Method
Len
Len returns the number of items in the cache.
core/cache.go:96
↓ 3 callers
Method
Maxed
()
service/httpd.go:77
↓ 3 callers
Function
NewLatencies
(size int)
tools/sim/percentiles.go:17
↓ 3 callers
Function
NewStorage
NewStorage returns a BoltStorage based Storage
storage/bolt/bolt.go:42
↓ 3 callers
Function
NewSystem
NewSystem does about what you'd think.
sys/system.go:662
← previous
next →
101–200 of 1,122, ranked by callers