package statestore 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.CaptureRefusalStore storecontract.MappingStore storecontract.BindingStore storecontract.BindingDispatcher storecontract.MappingMatchRecorder storecontract.PlaybookDispatcher storecontract.EventTypeStore storecontract.SourceStore storecontract.HarnessSecretStore toolCallWriter } // openEDAStore serves the event-capture store from the State Store's Postgres // pool, sealing binding secrets with cipher. func (b *server) openEDAStore(cipher bindingcipher.BindingCipher) { b.eda = postgres.NewEDA(b.pg, cipher, b.log) }