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

Function WithRawRefProcessor

private/buf/buffetch/internal/internal.go:588–592  ·  view source on GitHub ↗

WithRawRefProcessor attaches the given RawRefProcessor. If format is not manually specified, the RefParser will use this format parser with the raw path, that is not normalized.

(rawRefProcessor func(*RawRef) error)

Source from the content-addressed store, hash-verified

586// If format is not manually specified, the RefParser will use this format parser
587// with the raw path, that is not normalized.
588func WithRawRefProcessor(rawRefProcessor func(*RawRef) error) RefParserOption {
589 return func(refParser *refParser) {
590 refParser.rawRefProcessor = rawRefProcessor
591 }
592}
593
594// WithSingleFormat attaches the given format as a single format.
595//

Callers 7

newRefParserFunction · 0.92
newMessageRefParserFunction · 0.92
newSourceRefParserFunction · 0.92
newDirRefParserFunction · 0.92
newModuleRefParserFunction · 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…