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

Struct moduleSet

private/bufpkg/bufmodule/module_set.go:248–260  ·  view source on GitHub ↗

*** PRIVATE *** moduleSet

Source from the content-addressed store, hash-verified

246// moduleSet
247
248type moduleSet struct {
249 modules []Module
250 moduleFullNameStringToModule map[string]Module
251 opaqueIDToModule map[string]Module
252 bucketIDToModule map[string]Module
253 commitIDToModule map[uuid.UUID]Module
254
255 // filePathToModule is a cache of filePath -> module.
256 //
257 // If you are calling both the imports and module caches, you must call the imports cache first,
258 // i.e. lock ordering.
259 filePathToModuleCache cache.Cache[string, Module]
260}
261
262func newModuleSet(
263 modules []Module,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected