blob: 887904e3d24d60256fc4e9c3695ebeab7983ed1c (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package chain
import "codeberg.org/lindenii/furgit/objectstore"
// 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...),
}
}
|