MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / NewStreamStructure

Function NewStreamStructure

structure/stream.go:55–61  ·  view source on GitHub ↗

StreamStructure represents a stream structure

(options config.Options)

Source from the content-addressed store, hash-verified

53
54// StreamStructure represents a stream structure
55func NewStreamStructure(options config.Options) (*StreamStructure, error) {
56 db, err := engine.NewDB(options)
57 if err != nil {
58 return nil, err
59 }
60 return &StreamStructure{db: db}, nil
61}
62
63var (
64 // ErrInvalidXArgs is returned when the arguments are invalid

Callers 1

initStreamDBFunction · 0.85

Calls 1

NewDBFunction · 0.92

Tested by 1

initStreamDBFunction · 0.68