StreamStructure represents a stream structure
(options config.Options)
| 53 | |
| 54 | // StreamStructure represents a stream structure |
| 55 | func 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 | |
| 63 | var ( |
| 64 | // ErrInvalidXArgs is returned when the arguments are invalid |