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
↓ 3 callers
Function
ParseQueryFromJSON
(ctx *Context, s string)
core/query_test.go:142
↓ 3 callers
Function
PatternQueryFromMap
(ctx *Context, m map[string]interface{})
core/query.go:530
↓ 3 callers
Method
Rem
Remove the given ID at the given term.
core/termindex.go:109
↓ 3 callers
Method
RemFact
(ctx *Context, id string)
core/location.go:496
↓ 3 callers
Method
RemPatternMap
RemPatternMap removes the given pattern from the index.
core/patternindex.go:513
↓ 3 callers
Method
RemRule
(ctx *Context, id string)
core/location.go:379
↓ 3 callers
Method
Reset
Reset zeros the current elapsed time and resets the current time.
core/timers.go:77
↓ 3 callers
Method
Scan
(bucket string, f func(b, k, v string) (bool, error))
crolt/cron.go:427
↓ 3 callers
Method
SetProp
(ctx *Context, id string, prop string, val interface{})
core/location.go:269
↓ 3 callers
Method
Stats
()
tools/sim/percentiles.go:132
↓ 3 callers
Method
Stats
()
core/location.go:974
↓ 3 callers
Method
StopTag
StopTag computes the elapsed time (in nanosecs) and stores it in the history. This method also logs (level -1) the elapsed time with the given tag.
core/timers.go:121
↓ 3 callers
Method
StripQuestionMarks
Strips '?' from variables. Warn if no '?'.
core/query.go:101
↓ 3 callers
Method
Suspend
Suspend stops the instance's processing loop. Restart processing with Resume().
cron/cron.go:268
↓ 3 callers
Function
UnmarshalYAML
(bs []byte, v interface{})
service/httpd.go:255
↓ 3 callers
Function
UseCores
UseCores will use all cores unless the environment variable 'GOMAXPROCS' is set. If 'silent', then do not make a 'Log()' call. There is a proposal f
core/util.go:357
↓ 3 callers
Function
Who
(skip int)
core/util.go:549
↓ 3 callers
Function
cast
(iface interface{})
core/match.go:76
↓ 3 callers
Function
chanGet
(c chan interface{}, wait time.Duration, t *testing.T)
core/rules_test.go:125
↓ 3 callers
Function
checkExpiration
checkExpires determines if the given fact has expired. Assumes that 'setExpires()' was called previous so that we have a good 'expires' value if any.
core/state.go:489
↓ 3 callers
Method
delete
(account, id string)
crolt/cron.go:314
↓ 3 callers
Method
expire
expire checks for expiration and removes the fact if expired. This method is mostly generic and could be dissociated from IndexedState.
core/state_linear.go:486
↓ 3 callers
Method
expire
expire checks for expiration and removes the fact if expired. This method is mostly generic and could be dissociated from IndexedState.
core/state_indexed.go:579
↓ 3 callers
Function
genPropId
genPropId generates the canonical fact id for a property for the given id and prop.
core/state.go:127
↓ 3 callers
Function
getJS
(js string)
tools/sim/gen.go:268
↓ 3 callers
Method
init
(ctx *Context)
core/state_indexed.go:100
↓ 3 callers
Method
init
()
crolt/cron.go:169
↓ 3 callers
Method
instantiate
(params map[string]string)
tools/sim/gen.go:380
↓ 3 callers
Function
locationCreated
(ctx *Context, loc *Location)
sys/system.go:805
↓ 3 callers
Function
newContext
(appId string)
core/context.go:199
↓ 3 callers
Function
noConnection
(err error)
storage/dynamodb/dynamodb_test.go:33
↓ 3 callers
Function
picast
(ctx *Context, x interface{})
core/patternindex.go:108
↓ 3 callers
Method
rem
(ctx *Context, id string, lock bool)
core/state_linear.go:214
↓ 3 callers
Method
rem
(ctx *Context, id string)
core/state_indexed.go:409
↓ 3 callers
Method
resetTimer
()
cron/cron.go:404
↓ 3 callers
Method
resetTimerLocked
()
cron/cron.go:421
↓ 3 callers
Function
respond
(out, js)
examples/endpoint.py:43
↓ 3 callers
Method
slide
slide moves the count entries down the line based on the current time.
core/breaker.go:252
↓ 3 callers
Method
store
Add to a timer's history.
core/timers.go:202
↓ 3 callers
Function
substituteString
substituteString attempts to replace variable references in the given string with their corresponding bindings. If the given string is an exact match
core/actions.go:196
↓ 3 callers
Function
typeCode
(x interface{})
core/patternindex.go:163
↓ 3 callers
Method
withPrivilege
(ctx *Context)
core/state_indexed.go:68
↓ 3 callers
Method
withoutPrivilege
(ctx *Context)
core/state_indexed.go:72
↓ 2 callers
Method
Add
(ctx *Context, loc string, data *Pair)
core/storage.go:43
↓ 2 callers
Method
Add
Add adds the given string to the set.
core/util.go:79
↓ 2 callers
Method
AddProp
(prop string, val interface{})
core/context.go:136
↓ 2 callers
Method
AddStrings
(xs ...string)
core/util.go:92
↓ 2 callers
Method
AtCapacity
(ctx *Context)
core/location.go:197
↓ 2 callers
Function
BenchSystem
BenchSystem makes a System that might be appropriate for benchmarks. Verbosity is 'NOTHING'. Based on 'ExampleSystem'.
sys/system.go:561
↓ 2 callers
Function
CPULoad
CPULoad gets load averages from '/proc/loadavg'.
core/breaker.go:422
↓ 2 callers
Method
CSVDiv
(by int)
tools/sim/percentiles.go:117
↓ 2 callers
Function
CachedSlurp
CachedSlurp gets the contents (string) at a URL using a little LRU cache. The cache has a TTL of 5 seconds See the constants SlurpCacheSize and Slurp
core/javascript.go:91
↓ 2 callers
Method
Clear
(ctx *Context, loc string)
core/storage_mem.go:75
↓ 2 callers
Method
CreateLocation
CreateLocation exists solely to mark a location as created.
sys/system.go:771
↓ 2 callers
Function
DecodeString
(encoding, code string)
core/actions.go:67
↓ 2 callers
Method
Difference
Difference returns a new set containing the elements in receiver that are not in the given set. No sets are harmed in this operation.
core/util.go:144
↓ 2 callers
Method
DoAncestors
DoAncestors calls the given function on this location and all of its ancestors in depth-first order.
core/location.go:540
↓ 2 callers
Method
DoBuckets
(f func(bucket string) error)
crolt/cron.go:55
↓ 2 callers
Method
DoOnce
DoOnce get a client, constructs a request, issues the request, and gathers the result.
core/http.go:230
↓ 2 callers
Method
Drain
(d time.Duration)
service/httpd.go:104
↓ 2 callers
Function
EmptyStringSet
EmptyStringSet makes one of those.
core/util.go:70
↓ 2 callers
Function
ExampleConfig
ExampleConfig just generates a simple config for an in-memory-only System.
sys/system.go:371
↓ 2 callers
Function
ExecQuery
(ctx *Context, q Query, loc *Location, qc QueryContext, qr QueryResult)
core/query.go:84
↓ 2 callers
Method
FindRules
(ctx *Context, event Map)
core/state.go:41
↓ 2 callers
Method
GenerateHeaders
(ctx *Context)
core/context.go:28
↓ 2 callers
Method
GetCompiledCode
(ctx *Context, loc *Location)
core/query.go:186
↓ 2 callers
Function
GetRulePatterns
GetRulesPatterns extracts the rule's 'when' pattern.
core/state_indexed.go:329
↓ 2 callers
Method
GetSize
GetSize returns the number of facts (including rules) stored in the given location.
sys/system.go:876
↓ 2 callers
Function
GetStorage
GetStorage attempts to create a Storage. See '../storage/' for some implementations. Possible storage types: "none": This Storage doesn't remember
sys/system.go:397
↓ 2 callers
Method
GetStringCode
()
core/actions.go:82
↓ 2 callers
Method
GetThunk
GetThunk returns the thunk that will interpret the action. For the ActionInterpreter interface.
core/actions.go:325
↓ 2 callers
Method
Have
(ctx *Context, id string, isRule bool)
core/location.go:218
↓ 2 callers
Method
Health
(ctx *Context)
core/storage.go:55
↓ 2 callers
Method
HealthDeep
(ctx *core.Context)
service/service.go:1318
↓ 2 callers
Function
IpAddresses
IpAddresses tries to find a machine's (non-loopback) network interfaces. 127.0.0.1 and ::1 are not included in the results. Uses 'net.Interfaces()'.
core/util.go:446
↓ 2 callers
Function
IsNakedVariable
(s string)
core/actions.go:186
↓ 2 callers
Method
JSON
()
core/util.go:541
↓ 2 callers
Method
Jitter
()
crolt/cron.go:100
↓ 2 callers
Method
ListRules
ListRules returns all rules (JSON) stored in the given location.
sys/system.go:1303
↓ 2 callers
Method
Load
ListLocations(ctx *Context) ([]string, error)
core/storage.go:41
↓ 2 callers
Method
Load
(ctx *Context)
core/state_linear.go:119
↓ 2 callers
Method
LocControl
LocControl gets a location controls. A location's controls originate with the System's controls, which have a 'DefaultLocControl' that's used if 'Loc
sys/system.go:300
↓ 2 callers
Method
MaxPending
()
service/httpd.go:68
↓ 2 callers
Function
MaybeYAML
(bs []byte)
service/httpd.go:219
↓ 2 callers
Method
Metric
(name string, args ...interface{})
core/log.go:78
↓ 2 callers
Function
NewHTTPClientSpec
DefaultHTTPClientSpec generates HTTPClientSpec based on defaults given by SystemParameters.
core/http.go:94
↓ 2 callers
Function
NewHTTPService
(ctx *core.Context, service *Service)
service/httpd.go:52
↓ 2 callers
Function
NewJob
(account string, id string, expr string)
crolt/cron.go:132
↓ 2 callers
Function
NewSimpleBreaker
(probe func() (float64, error), limit float64)
core/breaker.go:349
↓ 2 callers
Function
NewSimpleLocationProvider
(locs map[string]*Location)
core/location.go:991
↓ 2 callers
Function
OneShotSchedule
(schedule string)
core/events.go:311
↓ 2 callers
Function
ParseVerbosity
ParseVerbosity parses and evals and log mask. This function is a little crazy. It uses Javascript to parse and eval the given string. The various l
core/log.go:292
↓ 2 callers
Method
Persistent
Persistent reports whether the Cronner's state is persistent or ephemeral. A persistent Cronner will not get updates when Locations are loaded (since
cron/generic.go:117
↓ 2 callers
Function
Post
Post issues a POST to the specified URL.
core/http.go:388
↓ 2 callers
Function
PrepareFact
(ctx *Context, givenId string, x Map)
core/state.go:313
↓ 2 callers
Method
ProcessRequest
(ctx *core.Context, m map[string]interface{}, out io.Writer)
service/service.go:176
↓ 2 callers
Method
Prop
(prop string)
core/context.go:129
↓ 2 callers
Method
Rem
Rem removes the job with the given id. The boolean return value might indicate whether the job was found. Probably isn't meaningful.
cron/generic.go:109
↓ 2 callers
Method
RemIdTerms
Remove all entries for the given ID at the given terms.
core/termindex.go:136
↓ 2 callers
Method
RemRule
RemRule removes a rule from the given location. Returns the ID of the removed rule.
sys/system.go:1073
← previous
next →
201–300 of 1,122, ranked by callers