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

Method SetProjectConfig

gateway/modules/modules.go:61–70  ·  view source on GitHub ↗

SetProjectConfig sets the config all modules

(ctx context.Context, config *config.ProjectConfig)

Source from the content-addressed store, hash-verified

59
60// SetProjectConfig sets the config all modules
61func (m *Modules) SetProjectConfig(ctx context.Context, config *config.ProjectConfig) error {
62 module, err := m.loadModule(config.ID)
63 if err != nil {
64 module, err = m.newModule(config)
65 if err != nil {
66 return err
67 }
68 }
69 return module.SetProjectConfig(ctx, config)
70}
71
72// SetDatabaseConfig sets the config of db, auth, schema and realtime modules
73func (m *Modules) SetDatabaseConfig(ctx context.Context, projectID string, databaseConfigs config.DatabaseConfigs, schemaConfigs config.DatabaseSchemas, ruleConfigs config.DatabaseRules, prepConfigs config.DatabasePreparedQueries) error {

Callers

nothing calls this directly

Calls 3

loadModuleMethod · 0.95
newModuleMethod · 0.95
SetProjectConfigMethod · 0.65

Tested by

no test coverage detected