MCPcopy Create free account
hub / github.com/astercloud/aster / AddGlobalRule

Method AddGlobalRule

pkg/memory/rules/manager.go:153–157  ·  view source on GitHub ↗

AddGlobalRule 添加全局规则

(rule *Rule)

Source from the content-addressed store, hash-verified

151
152// AddGlobalRule 添加全局规则
153func (m *Manager) AddGlobalRule(rule *Rule) {
154 m.mu.Lock()
155 defer m.mu.Unlock()
156 m.ruleSet.AddGlobalRule(rule)
157}
158
159// AddProjectRule 添加项目规则
160func (m *Manager) AddProjectRule(projectID string, rule *Rule) {

Callers 1

LoadGlobalRulesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected