MCPcopy
hub / github.com/redpanda-data/console / String

Method String

backend/pkg/console/config_extensions.go:118–143  ·  view source on GitHub ↗

String converts the iota number into a string when marshalling the struct that uses the FrontendFormat which is int8 otherwise.

()

Source from the content-addressed store, hash-verified

116// String converts the iota number into a string when marshalling
117// the struct that uses the FrontendFormat which is int8 otherwise.
118func (f FrontendFormat) String() string {
119 switch f {
120 default:
121 return "UNKNOWN"
122 case FrontendFormatBoolean:
123 return "BOOLEAN"
124 case FrontendFormatPassword:
125 return "PASSWORD"
126 case FrontendFormatString:
127 return "STRING"
128 case FrontendFormatSelect:
129 return "SELECT"
130 case FrontendFormatMultiSelect:
131 return "MULTI_SELECT"
132 case FrontendFormatByteSize:
133 return "BYTE_SIZE"
134 case FrontendFormatRatio:
135 return "RATIO"
136 case FrontendFormatDuration:
137 return "DURATION"
138 case FrontendFormatDecimal:
139 return "DECIMAL"
140 case FrontendFormatInteger:
141 return "INTEGER"
142 }
143}
144
145// MarshalText implements encoding.TextMarshaler.
146func (f FrontendFormat) MarshalText() (text []byte, err error) {

Callers 15

MarshalTextMethod · 0.95
startMessageWorkerMethod · 0.45
consumeKafkaMessagesMethod · 0.45
GetBrokerConfigMethod · 0.45
testKafkaConnectivityMethod · 0.45
GetSchemaRegistryModeMethod · 0.45
PutSchemaRegistryModeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected