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

Method String

message.go:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33type CompressionCodec int8
34
35func (cc CompressionCodec) String() string {
36 return []string{
37 "none",
38 "gzip",
39 "snappy",
40 "lz4",
41 "zstd",
42 }[int(cc)]
43}
44
45// UnmarshalText returns a CompressionCodec from its string representation.
46func (cc *CompressionCodec) UnmarshalText(text []byte) error {

Callers 1

MarshalTextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected