(name, title, desc, value string, require bool)
| 238 | } |
| 239 | |
| 240 | func createTextInput(name, title, desc, value string, require bool) plugin.ConfigField { |
| 241 | return plugin.ConfigField{ |
| 242 | Name: name, |
| 243 | Type: plugin.ConfigTypeInput, |
| 244 | Title: plugin.MakeTranslator(title), |
| 245 | Description: plugin.MakeTranslator(desc), |
| 246 | Required: require, |
| 247 | UIOptions: plugin.ConfigFieldUIOptions{ |
| 248 | InputType: plugin.InputTypeText, |
| 249 | }, |
| 250 | Value: value, |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | func (g *Connector) ConfigReceiver(config []byte) error { |
| 255 | c := &ConnectorConfig{} |