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

Function New

db/journal/queue.go:40–48  ·  view source on GitHub ↗
(engine storage.Engine, path *storage.URI)

Source from the content-addressed store, hash-verified

38}
39
40func New(engine storage.Engine, path *storage.URI) *Queue {
41 return &Queue{
42 engine: engine,
43 path: path,
44 headPath: path.JoinPath("HEAD"),
45 tailPath: path.JoinPath("TAIL"),
46 tailLockPath: path.JoinPath("TAIL.lock"),
47 }
48}
49
50func (q *Queue) Path() *storage.URI {
51 return q.path

Callers 2

CreateFunction · 0.70
OpenFunction · 0.70

Calls 1

JoinPathMethod · 0.80

Tested by

no test coverage detected