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
↓ 1 callers
Method
Defaults
Defaults sets up some reasonable values. ToDo: Move to SystemParameters
core/control.go:165
↓ 1 callers
Method
Delete
(ctx *Context, loc string)
core/storage_mem.go:83
↓ 1 callers
Method
Delete
(ctx *Context)
core/location.go:926
↓ 1 callers
Method
Delete
(account, id string)
crolt/cron.go:279
↓ 1 callers
Method
DeleteLocation
DeleteLocation should (!) clear all the state for the given location.
sys/system.go:1149
↓ 1 callers
Method
Do
(client *http.Client)
crolt/work.go:49
↓ 1 callers
Function
DumpBucket
(s *Cron, bucket string)
crolt/cron_test.go:76
↓ 1 callers
Method
Emit
()
tools/sim/gen.go:83
↓ 1 callers
Method
Emit
(types *DeviceTypes, f func(req interface{}) error)
tools/sim/gen.go:336
↓ 1 callers
Method
ExecAction
(ctx *Context, bs Bindings, a Action)
core/actions.go:271
↓ 1 callers
Function
ExtendBindings
Copy the given bindings into a new set of bindings.
core/query.go:479
↓ 1 callers
Method
FastMetrics
Populate TermIndexMetrics with only metrics that are quick to compute. Also see 'SlowTermIndexMetrics'.
core/termindex.go:64
↓ 1 callers
Method
FindCachedRules
(ctx *Context, event Map)
core/state.go:42
↓ 1 callers
Method
FindDevice
(deviceType string)
tools/sim/gen.go:300
↓ 1 callers
Method
Gen
()
tools/sim/gen.go:228
↓ 1 callers
Method
GenAccount
(n int)
tools/sim/gen.go:321
↓ 1 callers
Function
GenId
GenId generates, if necessary, and id suitablef or the given fact. If the fact is a property, then the id will be canonical. Otherwise, if 'def' is e
core/state.go:150
↓ 1 callers
Function
GenerateUpdateTimestamp
GenerateUpdateTimestamp returns a string consisting of the current timestamp and 'AnIpAddress'. Used by 'Update()'.
core/location.go:62
↓ 1 callers
Method
Get
Get returns the location after opening it once.
sys/system.go:227
↓ 1 callers
Method
Get
(account, id string)
crolt/cron.go:287
↓ 1 callers
Method
GetFact
GetFact returns JSON representation of a fact from the given location.
sys/system.go:978
↓ 1 callers
Function
GetHTTPRequest
(ctx *core.Context, r *http.Request)
service/httpd.go:295
↓ 1 callers
Method
GetLastUpdatedMem
GetLastUpdatedMem reports what this system thinks the location's last updated timestamp is. Does not query DynamoDB to find out. Just returns what i
sys/system.go:895
↓ 1 callers
Method
GetLocation
(ctx *Context, name string)
core/location.go:984
↓ 1 callers
Method
GetParents
GetParents gets the location's parents (if any).
sys/system.go:1326
↓ 1 callers
Method
GetParents
GetParents does what you'd think. Maybe shouldn't be a top-level location API. Instead expose 'GetProp' and document special properties?
core/location.go:791
↓ 1 callers
Method
GetProp
(ctx *Context, prop string, def interface{})
core/location.go:970
↓ 1 callers
Method
GetPropString
(ctx *Context, prop string, def string)
core/location.go:965
↓ 1 callers
Method
GetRule
GetRule returns JSON representation of a rule from the given location.
sys/system.go:1097
↓ 1 callers
Method
GetRule
(ctx *Context, id string)
core/location.go:434
↓ 1 callers
Function
GetRuntimes
GetRuntimes get a list of current the System's runtime data.
sys/system.go:576
↓ 1 callers
Method
GetStats
GetStats isn't really implemented.
core/storage_mem.go:90
↓ 1 callers
Function
GetStorage
GetStorage will return a DynamoDBStorage, creating one if necessary.
storage/dynamodb/dynamodb.go:319
↓ 1 callers
Method
GetThunk
GetThunk returns a function that can be executed to interpreter the given Action.
core/actions.go:303
↓ 1 callers
Function
GetTimestamp
GetTimestamp makes a timestamp from UNIX nanoseconds.
core/util.go:197
↓ 1 callers
Method
GetWith
(key interface{}, thunk func() (interface{}, error))
core/cache.go:52
↓ 1 callers
Function
GoroutineBreaker
GoroutineBreaker makes a SimpleBreaker based on goroutine count.
core/breaker.go:390
↓ 1 callers
Method
HealthDeeper
(ctx *core.Context)
service/service.go:1337
↓ 1 callers
Function
ISlice
ISlice attempts to convert the given thing to an array of interface{}s. If the given thing isn't array, the thing is just returned. Uses reflection.
core/util.go:509
↓ 1 callers
Function
IdProperty
IdProperty returns true if the given prop starts with '!'.
core/state.go:132
↓ 1 callers
Method
Inc
(state string)
service/httpd.go:476
↓ 1 callers
Function
IncCounter
IncCounter safely returns an increasing int.
core/util.go:218
↓ 1 callers
Method
Instantiate
(params map[string]string)
tools/sim/gen.go:420
↓ 1 callers
Function
IpAddress
IpAddress tries to return a (non-loopback) IP address for this machine. If it can't find one, it returns 127.0.0.1. Exactly what this function retur
core/util.go:490
↓ 1 callers
Method
IsLoaded
(ctx *Context)
core/state_linear.go:112
↓ 1 callers
Method
IsReadOnly
(ctx *Context)
core/location.go:122
↓ 1 callers
Method
Len
()
cron/cron.go:148
↓ 1 callers
Function
LocationFunctions
(ctx *Context, loc *Location, runtime *otto.Otto, env map[string]interface{})
core/javascript.go:136
↓ 1 callers
Method
Log
Log implements part of the Logger interface.
core/loggers.go:40
↓ 1 callers
Function
MakeLogRecord
MakeLogRecord is used by Log() to add log data to a context.
core/log.go:411
↓ 1 callers
Method
Mean
()
tools/sim/percentiles.go:46
↓ 1 callers
Method
Merge
(more *SearchResults)
core/state.go:371
↓ 1 callers
Function
NanoStringToMilliString
NanoStringToMilliString drops microseconds from the string, which should be in the 'RFC3339Nano' representation.
core/util.go:209
↓ 1 callers
Function
NewCachedLocations
(ctx *Context)
sys/system.go:76
↓ 1 callers
Function
NewComboBreaker
(bs ...Breaker)
core/breaker.go:277
↓ 1 callers
Function
NewConnStates
()
service/httpd.go:472
↓ 1 callers
Function
NewCounter
(steps int)
core/events.go:352
↓ 1 callers
Function
NewCron
(db *bolt.DB, partitions int, maxJitter time.Duration, ttl time.Duration)
crolt/cron.go:69
↓ 1 callers
Function
NewCronBroadcaster
()
cron/cron.go:70
↓ 1 callers
Function
NewDeviceTypes
(js string)
tools/sim/gen.go:281
↓ 1 callers
Function
NewDialer
(d *net.Dialer)
tools/sim/main.go:208
↓ 1 callers
Function
NewDialer
(d *net.Dialer)
storage/dynamodb/dynamodb.go:124
↓ 1 callers
Function
NewGen
(x interface{})
tools/sim/gen.go:120
↓ 1 callers
Function
NewListener
(ctx *core.Context, s *HTTPService, port string, admin bool)
service/httpd.go:95
↓ 1 callers
Function
NewSearchTest
(bsss string)
core/query_test.go:34
↓ 1 callers
Function
NewStorage
NewStorage creates new Storage implementation based on Cassandra. The given Nodes should have the form ADDRESS:PORT, where the PORT is the CQL port (
storage/cassandra/cassandra.go:144
↓ 1 callers
Function
NewTemplate
(js string)
tools/sim/gen.go:408
↓ 1 callers
Function
NewThrottle
NewThrottle creates a new Throttle based on an embedded Breaker. 'pause' specifies how long to wait between trying the breaker. 'attempts' specifies
core/breaker.go:495
↓ 1 callers
Function
NotQueryFromMap
(ctx *Context, m map[string]interface{})
core/query.go:737
↓ 1 callers
Function
NowMicros
NowMicros returns the current time in UTC microseconds.
core/util.go:181
↓ 1 callers
Method
Once
Once is a little check to see if a job should only be executed once. The test is if job.Expression is nil.
cron/cron.go:375
↓ 1 callers
Method
OpenLocation
OpenLocation wraps 'newLocation' to check for existence (optionally).
sys/system.go:199
↓ 1 callers
Function
ParametersAddHook
ParametersAddHook installs a function that is called when SystemParameters change. Not thread-safe.
core/vars.go:40
↓ 1 callers
Function
ParseConfig
ParseConfig generates a CassandraDBConfig from a string. Configuration is parsed from a string of the follow format: host:port,host:port;username;pass
storage/cassandra/cassandra.go:64
↓ 1 callers
Method
Pause
Pause stops the clock.
core/timers.go:86
↓ 1 callers
Method
Pending
()
service/httpd.go:56
↓ 1 callers
Method
PrepareWork
(ctx *Context, event Map)
core/events.go:332
↓ 1 callers
Method
Pretty
()
tools/sim/gen.go:313
↓ 1 callers
Function
ProbeTTL
ProbeTTL wraps a TTL cache around the given function.
core/breaker.go:397
↓ 1 callers
Method
ProcessBindings
(ctx *Context, bs Bindings)
core/context.go:29
↓ 1 callers
Method
ProcessQuery
ProcessQuery can be used to replace or wrap queries when unmarshaling a rule condition. The method gets the raw generic query data along with the que
core/context.go:38
↓ 1 callers
Method
Purge
Purge is used to completely clear the cache
core/cache.go:104
↓ 1 callers
Method
Query
(ctx *Context, query string)
core/location.go:896
↓ 1 callers
Function
RandVar
()
core/factgen.go:32
↓ 1 callers
Function
RandomFactsTest
(ctx *Context, numberOfFacts int, numberOfQueries int, t *testing.T)
core/factgen.go:83
↓ 1 callers
Method
Release
Release checks whether the location has expired and, if so, closes it.
sys/system.go:167
↓ 1 callers
Method
RemHook
(hook RemHookFn)
core/state.go:33
↓ 1 callers
Method
RemID
Remove all entries for the given fact ID. Must check every term, so this operation is slow. Use 'RemIdTerms' if you know a fact's terms.
core/termindex.go:128
↓ 1 callers
Method
Remove
(ctx *Context, loc string, k []byte)
core/storage_mem.go:67
↓ 1 callers
Method
Remove
Remove removes the provided key from the cache.
core/cache.go:112
↓ 1 callers
Method
RemoveOldest
RemoveOldest removes the oldest item from the cache.
core/cache.go:120
↓ 1 callers
Method
Request
Request constructs but does not issue a http.Request. If 'Env' isn't nil, that map will be used to obtain cookie data.
core/http.go:170
↓ 1 callers
Method
Request
()
crolt/work.go:33
↓ 1 callers
Method
Resume
Resume restarts a paused timer.
core/timers.go:68
↓ 1 callers
Method
RetryEventWork
(ctx *Context, location string, work *FindRules)
sys/system.go:1285
↓ 1 callers
Method
RuleEnabled
EnableRule enables or disables a rule.
sys/system.go:1052
↓ 1 callers
Function
RuleFromJSON
RuleToJSON generates a Rule from the given JSON representation.
core/rules.go:150
↓ 1 callers
Method
Rules
(t *Template, config map[string]interface{})
tools/sim/gen.go:440
↓ 1 callers
Method
RunJavascript
RunJavascript allows location-specific Javascript testing.
sys/system.go:1399
↓ 1 callers
Method
Schedule
Schedule makes the Crolt request to create a new job.
cron/croltglue.go:109
← previous
next →
401–500 of 1,122, ranked by callers