MCPcopy Index your code
hub / github.com/apache/answer-plugins / createTextInput

Function createTextInput

connector-basic/basic.go:240–252  ·  view source on GitHub ↗
(name, title, desc, value string, require bool)

Source from the content-addressed store, hash-verified

238}
239
240func 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
254func (g *Connector) ConfigReceiver(config []byte) error {
255 c := &ConnectorConfig{}

Callers 1

ConfigFieldsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected