MCPcopy Create free account
hub / github.com/brimdata/super / Open

Function Open

db/journal/queue.go:248–254  ·  view source on GitHub ↗
(ctx context.Context, engine storage.Engine, path *storage.URI)

Source from the content-addressed store, hash-verified

246}
247
248func Open(ctx context.Context, engine storage.Engine, path *storage.URI) (*Queue, error) {
249 q := New(engine, path)
250 if _, err := q.ReadHead(ctx); err != nil {
251 return nil, fmt.Errorf("%s: no such journal", path)
252 }
253 return q, nil
254}

Callers 1

OpenStoreFunction · 0.70

Calls 2

ReadHeadMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected