Files
archie/internal/app/archied/state_store_eda.go
T
sam be9a45ad2d Merge branch 'pg/foundation' into worktree-agent-a96503bc8828fc104
# Conflicts:
#	docs/data/generated/dev-docs.json
#	internal/app/archied/state_store_test.go
#	internal/app/archied/state_store_toolcalls_test.go
#	internal/contracts/state/v1/state.pb.go
#	internal/daemon/dispatch_bindings_test.go
#	internal/infrastructure/bindingcipher/cipher_test.go
#	internal/infrastructure/captureintake/receiver_test.go
#	internal/infrastructure/edastore/contracts_binding.go
#	internal/infrastructure/edastore/testsupport_test.go
#	internal/infrastructure/postgres/edastore.go
#	internal/infrastructure/postgres/edastore_test.go
#	internal/infrastructure/staterpc/error_test.go
#	internal/store/store.go
#	internal/webui/api_binding_test.go
2026-09-24 19:47:00 +10:00

28 lines
1012 B
Go

package archied
import (
"github.com/samcharles93/archie-core/internal/domain/storecontract"
"github.com/samcharles93/archie-core/internal/infrastructure/bindingcipher"
"github.com/samcharles93/archie-core/internal/infrastructure/postgres"
)
// eventCaptureStore is every surface the State Store serves from the
// event-capture tables, plus the tool_call projection it writes through.
type eventCaptureStore interface { //nolint:interfacebloat // composite of the store contracts the event-capture tables serve
storecontract.CaptureStore
storecontract.MappingStore
storecontract.BindingStore
storecontract.BindingDispatcher
storecontract.MappingMatchRecorder
storecontract.PlaybookDispatcher
storecontract.EventTypeStore
storecontract.SourceStore
toolCallWriter
}
// openEDAStore serves the event-capture store from the State Store's Postgres
// pool, sealing binding secrets with cipher.
func (b *boot) openEDAStore(cipher bindingcipher.BindingCipher) {
b.eda = postgres.NewEDA(b.pg, cipher)
}