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

Method String

acl_types.go:200–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198)
199
200func (a *AclResourcePatternType) String() string {
201 mapping := map[AclResourcePatternType]string{
202 AclPatternUnknown: "Unknown",
203 AclPatternAny: "Any",
204 AclPatternMatch: "Match",
205 AclPatternLiteral: "Literal",
206 AclPatternPrefixed: "Prefixed",
207 }
208 s, ok := mapping[*a]
209 if !ok {
210 s = mapping[AclPatternUnknown]
211 }
212 return s
213}
214
215// MarshalText returns the text form of the AclResourcePatternType (name without prefix)
216func (a *AclResourcePatternType) MarshalText() ([]byte, error) {

Callers 1

MarshalTextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected