MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / SetFunction

Method SetFunction

channels/sync_runner.go:219–222  ·  view source on GitHub ↗
(funcSource string)

Source from the content-addressed store, hash-verified

217}
218
219func (runner *SyncRunner) SetFunction(funcSource string) (bool, error) {
220 funcSource = wrappedFuncSource(funcSource)
221 return runner.JSRunner.SetFunction(funcSource)
222}
223
224// Common implementation of 'access()' and 'role()' callbacks
225func (runner *SyncRunner) addValueForUser(ctx context.Context, user otto.Value, value otto.Value, mapping map[string][]string) otto.Value {

Callers 3

TestSetFunctionFunction · 0.80
UpdateSyncFunMethod · 0.80
newJSRunnerFunction · 0.80

Calls 1

wrappedFuncSourceFunction · 0.85

Tested by 1

TestSetFunctionFunction · 0.64