MCPcopy
hub / github.com/spacecloud-io/space-cloud / SetEventingTriggerConfig

Method SetEventingTriggerConfig

gateway/modules/modules.go:146–152  ·  view source on GitHub ↗

SetEventingTriggerConfig sets the config of eventing module

(ctx context.Context, projectID string, eventingTriggers config.EventingTriggers)

Source from the content-addressed store, hash-verified

144
145// SetEventingTriggerConfig sets the config of eventing module
146func (m *Modules) SetEventingTriggerConfig(ctx context.Context, projectID string, eventingTriggers config.EventingTriggers) error {
147 module, err := m.loadModule(projectID)
148 if err != nil {
149 return err
150 }
151 return module.SetEventingTriggerConfig(ctx, eventingTriggers)
152}
153
154// SetEventingRuleConfig sets the config of eventing module
155func (m *Modules) SetEventingRuleConfig(ctx context.Context, projectID string, secureObj config.EventingRules) error {

Callers

nothing calls this directly

Calls 2

loadModuleMethod · 0.95

Tested by

no test coverage detected