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
↓ 2 callers
Method
ResolveService
(ctx *Context, name string)
core/location.go:947
↓ 2 callers
Method
RuleEnabled
(ctx *Context, id string)
core/location.go:238
↓ 2 callers
Method
SearchRules
SearchRules finds rules with 'when' patterns that match the given event (JSON).
sys/system.go:1218
↓ 2 callers
Function
SearchTermsTest
(ctx *Context, ti *TermIndex, terms []string, expected []string)
core/termindex_test.go:26
↓ 2 callers
Method
SetControl
SetControl atomically gets the System's controls.
sys/system.go:290
↓ 2 callers
Method
SetMaxPending
(max int32)
service/httpd.go:72
↓ 2 callers
Function
SimpleSystem
SimpleSystem ia a basic system with 'FOREVER' TTL and 'DefaultVerbosity' Verbosity.
sys/system.go:535
↓ 2 callers
Function
Slurp
Slurp gets the contents (string) at a URL. Also see CachedSlurp.
core/javascript.go:57
↓ 2 callers
Method
Sort
()
tools/sim/percentiles.go:70
↓ 2 callers
Function
SortValues
SortValues attempts to sort the slice generically.
core/patternindex.go:223
↓ 2 callers
Method
Start
(ctx *core.Context, servicePort string)
service/httpd.go:492
↓ 2 callers
Method
Status
Status report the breaker load (but where 100% is represented by 1.0), whether the breaker is closed (good) or open (bad), whether the breaker is disa
core/breaker.go:44
↓ 2 callers
Method
Status
()
core/breaker.go:359
↓ 2 callers
Function
StructToMap
StructToMap converts a struct to a map.
core/util.go:374
↓ 2 callers
Method
SubContext
()
core/context.go:219
↓ 2 callers
Method
Subtract
Subtract subtracts the given stats from the receiver. The receiver is cloned first, and the updated clone is returned.
core/stats.go:111
↓ 2 callers
Method
TermCard
How big is the set of IDs for the given term?
core/termindex.go:144
↓ 2 callers
Method
WorkLoops
()
crolt/cron.go:450
↓ 2 callers
Method
WorkWalk
(ctx *Context, w *FindRules, steps int)
core/events.go:359
↓ 2 callers
Method
add
(ctx *Context, id string, x Map)
core/state_indexed.go:280
↓ 2 callers
Method
add
(ctx *Context, pairs []piPair, id string)
core/patternindex.go:100
↓ 2 callers
Function
addSome
(ctx *Context, bolt *BoltStorage, b *testing.B, n int, m int)
storage/bolt/bolt_test.go:88
↓ 2 callers
Function
benchSetup
(b *testing.B)
storage/bolt/bolt_test.go:72
↓ 2 callers
Function
benchStateAdd
(b *testing.B, ctx *Context, s State)
core/state_test.go:51
↓ 2 callers
Function
benchStateSearch
(b *testing.B, ctx *Context, s State)
core/state_test.go:64
↓ 2 callers
Function
checkInjectedId
(t *testing.T, fact string, id string)
core/state_test.go:26
↓ 2 callers
Method
doFindRules
(ctx *Context, event Map)
core/state_linear.go:340
↓ 2 callers
Method
doFindRules
(ctx *Context, event Map)
core/state_indexed.go:691
↓ 2 callers
Function
doSearchTest
(t *testing.T, facts []string, pattern string, bsss string)
core/query_test.go:98
↓ 2 callers
Method
expire
expire checks the cache for the given location and determines if the cache value has expired. Either way, returns the location (if any). If the cach
sys/system.go:99
↓ 2 callers
Method
getActionFunc
(ctx *Context, bs Bindings, a Action)
core/actions.go:394
↓ 2 callers
Function
getBoolParam
(m map[string]interface{}, prop string, required bool)
service/service.go:110
↓ 2 callers
Method
getParents
getParents is current just a wrapper around 'GetProp' to read a location's parents (if any).
core/location.go:760
↓ 2 callers
Function
getProp
getProp attempts to find the property value for the target 'id' and prop. Calls 'getPropFromFact' after 'genPropId'.
core/state.go:258
↓ 2 callers
Function
getSchedule
(ctx *core.Context, fact core.Map)
cron/corehooks.go:25
↓ 2 callers
Method
grantPrivilege
(region string)
core/context.go:158
↓ 2 callers
Function
idProperty
idProperty prepends a '!' to the given prop (if necessary).
core/state.go:137
↓ 2 callers
Method
inc
()
tools/sim/main.go:185
↓ 2 callers
Method
incPending
(add bool)
service/httpd.go:60
↓ 2 callers
Method
init
init initializes the breaker's state. Mostly just allocates the count array.
core/breaker.go:239
↓ 2 callers
Method
init
()
core/context.go:188
↓ 2 callers
Function
instantiate
(m map[string]interface{}, params map[string]string)
tools/sim/gen.go:354
↓ 2 callers
Function
isURL
(library string)
core/query.go:119
↓ 2 callers
Method
json
()
core/util.go:123
↓ 2 callers
Function
loggableFor
(level LogLevel, given LogLevel)
core/log.go:405
↓ 2 callers
Function
makeClient
()
tools/sim/main.go:214
↓ 2 callers
Function
maybeCopyEvent
maybeCopyEvent will make a copy of the binding for "?event" if SystemParameters.CopyEvent says so. See issue #20. Watch out for concurrent access to
core/actions.go:257
↓ 2 callers
Method
mod
Mod (for modification) is the primary write/update function. The method calls itself recursively to modify the index. Users will call AddPatternMap,
core/patternindex.go:240
↓ 2 callers
Function
multiline
(s interface{})
doc/api/rulesapi.go:41
↓ 2 callers
Function
notAfter
(ctx *Context, secs int64, then int64)
core/state.go:474
↓ 2 callers
Function
parseAId
(aid string)
crolt/cron.go:162
↓ 2 callers
Function
protest
(response, message)
examples/executor.py:25
↓ 2 callers
Function
protest
(response, message)
examples/endpoint.py:36
↓ 2 callers
Function
protest
(response, message)
examples/actionendpoint.py:32
↓ 2 callers
Method
rem
(ctx *core.Context, id string)
cron/cron.go:545
↓ 2 callers
Method
remHooks
(ctx *Context)
core/state_indexed.go:474
↓ 2 callers
Method
revokePrivilege
()
core/context.go:164
↓ 2 callers
Function
sameBindingss
(x []Bindings, y []Bindings)
core/query_test.go:60
↓ 2 callers
Method
schedule
(ctx *core.Context, job *CronJob, checkLimit bool)
cron/cron.go:442
↓ 2 callers
Method
search
(ctx *Context, pattern Map, lock bool)
core/state_linear.go:272
↓ 2 callers
Method
search
(ctx *Context, pattern Map)
core/state_indexed.go:617
↓ 2 callers
Method
searchFacts
(ctx *Context, pattern Map)
core/location.go:601
↓ 2 callers
Method
searchRules
(ctx *Context, event Map)
core/location.go:657
↓ 2 callers
Method
searchRulesAncestors
(ctx *Context, event Map)
core/location.go:634
↓ 2 callers
Method
set
(j *Job)
crolt/cron.go:177
↓ 2 callers
Function
setExpires
setExpires looks for a given 'ttl' or 'expires' property, canonicalizes the value, and returns a rewritten Javascript representation of the fact, the
core/state.go:388
↓ 2 callers
Method
startProfiling
(ctx *Context)
sys/system.go:1435
↓ 2 callers
Function
testDeleteStateDependencies
(t *testing.T, ctx *Context, s State)
core/state_test.go:406
↓ 2 callers
Function
testStateBasic
(t *testing.T, ctx *Context, s State)
core/state_test.go:81
↓ 2 callers
Function
testStateExpires
(t *testing.T, newState func(ctx *Context, store Storage, loc string) (State, error))
core/state_test.go:468
↓ 2 callers
Function
testStateIdPropertiesBasic
(t *testing.T, ctx *Context, s State)
core/state_test.go:255
↓ 2 callers
Function
testStateIdPropertiesOverwrite
(t *testing.T, ctx *Context, s State)
core/state_test.go:345
↓ 2 callers
Function
testStatePropTTL
(t *testing.T, ctx *Context, s State)
core/state_test.go:588
↓ 2 callers
Function
testStatePropertiesBasic
(t *testing.T, ctx *Context, s State)
core/state_test.go:218
↓ 2 callers
Function
testStateRuleTTL
(t *testing.T, ctx *Context, s State)
core/state_test.go:618
↓ 2 callers
Function
testStateTTL
(t *testing.T, ctx *Context, s State)
core/state_test.go:542
↓ 2 callers
Method
toggle
toggle sends the signal to all Cron instances with this broadcaster. Assumes the broacaster (write) lock is held by the caller. Creates a new channe
cron/cron.go:110
↓ 2 callers
Method
unindexRule
(ctx *Context, id string, rule map[string]interface{})
core/state_indexed.go:370
↓ 2 callers
Method
update
(j *Job)
crolt/cron.go:245
↓ 2 callers
Function
usage
()
rulesys/main.go:316
↓ 2 callers
Function
weather
(where,appid)
examples/libs/wind.js:1
↓ 1 callers
Method
Add
(ctx *Context, id string, x Map)
core/state_linear.go:155
↓ 1 callers
Method
Add
(j *Job)
crolt/cron.go:206
↓ 1 callers
Method
AddHook
(hook AddHookFn)
core/state.go:32
↓ 1 callers
Function
AddHooks
(ctx *core.Context, cronner Cronner, state core.State)
cron/corehooks.go:49
↓ 1 callers
Method
Addr
()
service/httpd.go:204
↓ 1 callers
Method
Aggregate
Aggregate from given ServiceStats. Updates the receiver.
core/stats.go:137
↓ 1 callers
Function
AsThingSlice
(xs []interface{})
core/patternindex.go:156
↓ 1 callers
Method
Bind
Replace all variables in the given pattern with their bindings (when possible).
core/query.go:29
↓ 1 callers
Method
Clear
(ctx *Context, loc string)
storage/dynamodb/dynamodb.go:587
↓ 1 callers
Method
Clear
(ctx *Context, loc string)
storage/cassandra/cassandra.go:275
↓ 1 callers
Method
Clear
Clear removes a location and returns the number of records dropped
storage/bolt/bolt.go:114
↓ 1 callers
Method
ClearStats
ClearStats clear the System's stats.
sys/system.go:647
↓ 1 callers
Function
ClearTimerHistories
ClearTimerHistories resets all timer histories.
core/timers.go:192
↓ 1 callers
Method
Client
Client returns an http.Client appropriate for the given request. This function first consults HTTPClientCache. If a client with a matching HTTPClien
core/http.go:361
↓ 1 callers
Method
Close
(ctx *Context)
core/storage_mem.go:94
↓ 1 callers
Method
CloseLocation
CloseLocation currently does nothing.
sys/system.go:871
↓ 1 callers
Function
ConditionalCheckFailedException
(err error)
storage/dynamodb/dynamodb.go:458
↓ 1 callers
Method
Copy
We'll need to make an atomic copy of a history for API GetTimerHistory.
core/timers.go:159
↓ 1 callers
Method
Count
Count returns an approximate count of the number of facts. Only an approximation because we will count expired facts that have not been removed.
core/state_linear.go:105
← previous
next →
301–400 of 1,122, ranked by callers