MCPcopy Create free account
hub / github.com/netlify/gotrue / Config

Method Config

models/instance.go:39–49  ·  view source on GitHub ↗

Config loads the the base configuration values with defaults.

()

Source from the content-addressed store, hash-verified

37
38// Config loads the the base configuration values with defaults.
39func (i *Instance) Config() (*conf.Configuration, error) {
40 if i.BaseConfig == nil {
41 return nil, errors.New("no configuration data available")
42 }
43
44 baseConf := &conf.Configuration{}
45 *baseConf = *i.BaseConfig
46 baseConf.ApplyDefaults()
47
48 return baseConf, nil
49}
50
51// UpdateConfig updates the base config
52func (i *Instance) UpdateConfig(tx *storage.Connection, config *conf.Configuration) error {

Callers 1

loadInstanceConfigMethod · 0.80

Calls 1

ApplyDefaultsMethod · 0.95

Tested by

no test coverage detected