(meta []*BlockMeta, compactedMeta []*CompactedBlockMeta)
| 20 | ) |
| 21 | |
| 22 | func newTenantIndex(meta []*BlockMeta, compactedMeta []*CompactedBlockMeta) *TenantIndex { |
| 23 | return &TenantIndex{ |
| 24 | CreatedAt: time.Now(), |
| 25 | Meta: meta, |
| 26 | CompactedMeta: compactedMeta, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // marshal converts to json and compresses the bucketindex |
| 31 | func (b *TenantIndex) marshal() ([]byte, error) { |