MCPcopy Create free account
hub / github.com/daodst/chat / pushRuleSetByScope

Function pushRuleSetByScope

clientapi/routing/pushrules.go:291–298  ·  view source on GitHub ↗
(ruleSets *pushrules.AccountRuleSets, scope pushrules.Scope)

Source from the content-addressed store, hash-verified

289}
290
291func pushRuleSetByScope(ruleSets *pushrules.AccountRuleSets, scope pushrules.Scope) *pushrules.RuleSet {
292 switch scope {
293 case pushrules.GlobalScope:
294 return &ruleSets.Global
295 default:
296 return nil
297 }
298}
299
300func pushRuleSetKindPointer(ruleSet *pushrules.RuleSet, kind pushrules.Kind) *[]*pushrules.Rule {
301 switch kind {

Callers 7

GetPushRulesByScopeFunction · 0.85
GetPushRulesByKindFunction · 0.85
GetPushRuleByRuleIDFunction · 0.85
PutPushRuleByRuleIDFunction · 0.85
DeletePushRuleByRuleIDFunction · 0.85
GetPushRuleAttrByRuleIDFunction · 0.85
PutPushRuleAttrByRuleIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected