NewZSetStructure Returns a new ZSetStructure
(options config.Options)
| 155 | |
| 156 | // NewZSetStructure Returns a new ZSetStructure |
| 157 | func NewZSetStructure(options config.Options) (*ZSetStructure, error) { |
| 158 | db, err := engine.NewDB(options) |
| 159 | if err != nil { |
| 160 | return nil, err |
| 161 | } |
| 162 | return &ZSetStructure{db: db}, nil |
| 163 | } |
| 164 | |
| 165 | // newZSetNodes is a function that creates a new FZSet object and returns a pointer to it. |
| 166 | // It initializes the dictionary member dict of the newly created object to an empty map. |