MCPcopy Create free account
hub / github.com/google/go-cloud / OpenCollection

Function OpenCollection

docstore/urls.go:87–89  ·  view source on GitHub ↗

OpenCollection opens the collection identified by the URL given. See the URLOpener documentation in driver subpackages for details on supported URL formats, and https://gocloud.dev/concepts/urls/ for more information.

(ctx context.Context, urlstr string)

Source from the content-addressed store, hash-verified

85// on supported URL formats, and https://gocloud.dev/concepts/urls/ for more
86// information.
87func OpenCollection(ctx context.Context, urlstr string) (*Collection, error) {
88 return defaultURLMux.OpenCollection(ctx, urlstr)
89}

Callers 15

ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
setupFunction · 0.92
ExampleOpenCollectionFunction · 0.92
ExampleCollection_AsFunction · 0.92

Calls 1

OpenCollectionMethod · 0.80

Tested by 10

ExampleOpenCollectionFunction · 0.74
ExampleCollection_AsFunction · 0.74
TestOpenCollectionURLFunction · 0.74