class ObservationStoreWriterInterface

Defined at line 29 of file ../../third_party/cobalt/src/observation_store/observation_store.h

ObservationStoreWriterInterface is an abstract interface to a store

of Observations, to be used by code that writes to this store. This is

isolated into an abstract interface that can be mocked out in tests.

Public Methods

void ~ObservationStoreWriterInterface ()

Defined at line 31 of file ../../third_party/cobalt/src/observation_store/observation_store.h

void ObservationStoreWriterInterface ()

Make ObservationStoreWriterInterface move-only

Defined at line 34 of file ../../third_party/cobalt/src/observation_store/observation_store.h

void ObservationStoreWriterInterface (const ObservationStoreWriterInterface & )

Defined at line 35 of file ../../third_party/cobalt/src/observation_store/observation_store.h

ObservationStoreWriterInterface & operator= (const ObservationStoreWriterInterface & )

Defined at line 36 of file ../../third_party/cobalt/src/observation_store/observation_store.h

Status StoreObservation (std::unique_ptr<EncryptedMessage> observation, std::unique_ptr<ObservationMetadata> metadata, bool is_contribution)

StoreObservation takes a (possibly encrypted) observation, and its associated metadata and

stores it in the store.

The three variants below represent storing a definitely encrypted observation

(EncyrptedMessage), storing a definitely unenrcypted message (Observation) and storing a

possibly encrypted message (StoredObservation).

The first two are convenience methods that wrap around the third.

Defined at line 47 of file ../../third_party/cobalt/src/observation_store/observation_store.h

Status StoreObservation (std::unique_ptr<Observation> observation, std::unique_ptr<ObservationMetadata> metadata, bool is_contribution)

Defined at line 58 of file ../../third_party/cobalt/src/observation_store/observation_store.h

Status StoreObservation (std::unique_ptr<StoredObservation> observation, std::unique_ptr<ObservationMetadata> metadata)