ConfigReceiver receive config from admin
(config []byte)
| 103 | |
| 104 | // ConfigReceiver receive config from admin |
| 105 | func (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 | } |
nothing calls this directly
no test coverage detected