MCPcopy Create free account
hub / github.com/IBM/sarama / String

Method String

acl_types.go:212–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210)
211
212func (a *AclResourcePatternType) String() string {
213 mapping := map[AclResourcePatternType]string{
214 AclPatternUnknown: "Unknown",
215 AclPatternAny: "Any",
216 AclPatternMatch: "Match",
217 AclPatternLiteral: "Literal",
218 AclPatternPrefixed: "Prefixed",
219 }
220 s, ok := mapping[*a]
221 if !ok {
222 s = mapping[AclPatternUnknown]
223 }
224 return s
225}
226
227// MarshalText returns the text form of the AclResourcePatternType (name without prefix)
228func (a *AclResourcePatternType) MarshalText() ([]byte, error) {

Callers 1

MarshalTextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected