()
| 33 | type CompressionCodec int8 |
| 34 | |
| 35 | func (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. |
| 46 | func (cc *CompressionCodec) UnmarshalText(text []byte) error { |