MCPcopy Create free account
hub / github.com/apache/answer-plugins / ConfigReceiver

Method ConfigReceiver

search-algolia/config.go:105–116  ·  view source on GitHub ↗

ConfigReceiver receive config from admin

(config []byte)

Source from the content-addressed store, hash-verified

103
104// ConfigReceiver receive config from admin
105func (s *SearchAlgolia) ConfigReceiver(config []byte) error {
106 c := &AlgoliaSearchConfig{}
107 _ = json.Unmarshal(config, c)
108 s.Config = c
109 err := s.connect()
110 if err != nil {
111 return err
112 }
113 // if config update, re-init settings
114 err = s.initSettings()
115 return err
116}

Callers

nothing calls this directly

Calls 2

connectMethod · 0.95
initSettingsMethod · 0.95

Tested by

no test coverage detected