blob: 2cc79b0dd5f6fa494e41e59b11f44bbc049a8e28 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package chain
import "codeberg.org/lindenii/furgit/object/store"
// New creates an ordered object database chain.
//
// The provided backends must be non-nil and distinct.
// Chain borrows the provided backends and does not close them in Close.
func New(backends ...objectstore.Store) *Chain {
return &Chain{
backends: append([]objectstore.Store(nil), backends...),
}
}
|