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

Function newDirOrProtoFileRefParser

private/buf/buffetch/ref_parser.go:170–180  ·  view source on GitHub ↗
(logger *slog.Logger)

Source from the content-addressed store, hash-verified

168}
169
170func newDirOrProtoFileRefParser(logger *slog.Logger) *refParser {
171 return &refParser{
172 logger: logger,
173 fetchRefParser: internal.NewRefParser(
174 logger,
175 internal.WithRawRefProcessor(processRawRefDirOrProtoFile),
176 internal.WithDirFormat(formatDir),
177 internal.WithProtoFileFormat(formatProtoFile),
178 ),
179 }
180}
181
182func newModuleRefParser(logger *slog.Logger) *refParser {
183 return &refParser{

Callers 2

Calls 4

NewRefParserFunction · 0.92
WithRawRefProcessorFunction · 0.92
WithDirFormatFunction · 0.92
WithProtoFileFormatFunction · 0.92

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…