MCPcopy Create free account
hub / github.com/bufbuild/buf / WithSingleDefaultCompressionType

Function WithSingleDefaultCompressionType

private/buf/buffetch/internal/internal.go:700–704  ·  view source on GitHub ↗

WithSingleDefaultCompressionType sets the default compression type.

(defaultCompressionType CompressionType)

Source from the content-addressed store, hash-verified

698
699// WithSingleDefaultCompressionType sets the default compression type.
700func WithSingleDefaultCompressionType(defaultCompressionType CompressionType) SingleFormatOption {
701 return func(singleFormatInfo *singleFormatInfo) {
702 singleFormatInfo.defaultCompressionType = defaultCompressionType
703 }
704}
705
706// WithSingleCustomOptionKey adds a custom option key that is recognized..
707func WithSingleCustomOptionKey(key string) SingleFormatOption {

Callers 2

newRefParserFunction · 0.92
newMessageRefParserFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…