This commit is contained in:
@@ -23,7 +23,17 @@ type database interface {
|
||||
}
|
||||
|
||||
type Store struct {
|
||||
db database
|
||||
db database
|
||||
libraryTargetID string
|
||||
}
|
||||
|
||||
// WithLibraryTarget isolates release facts without mutating a shared Store.
|
||||
// The empty namespace retains legacy evidence; live API/workers bind a nonempty
|
||||
// identity before exposing library operations. Source seals remain independent.
|
||||
func (s *Store) WithLibraryTarget(id string) *Store {
|
||||
copy := *s
|
||||
copy.libraryTargetID = id
|
||||
return ©
|
||||
}
|
||||
|
||||
func NewStore(db database) *Store {
|
||||
|
||||
Reference in New Issue
Block a user