ooni-probe-cli/internal/model
Simone Basso 99ec7ffca9
fix: ensure experiments return nil when we want to submit (#654)
Since https://github.com/ooni/probe-cli/pull/527, if an experiment
returns an error, the corresponding measurement is not submitted since
the semantics of returning an error is that something fundamental
went wrong (e.g., we could not parse the input URL).

This diff ensures that all experiments only return and error when
something fundamental was wrong and return nil otherwise.

Reference issue: https://github.com/ooni/probe/issues/1808.
2022-01-07 13:17:20 +01:00
..
mocks refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
doc.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
experiment.go fix: ensure experiments return nil when we want to submit (#654) 2022-01-07 13:17:20 +01:00
keyvaluestore.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
logger_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
logger.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
measurement_test.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
measurement.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
netx.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
ooapi.go refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00
README.md refactor: interfaces and data types into the model package (#642) 2022-01-03 13:53:23 +01:00

Package github.com/ooni/probe-engine/model

Shared data structures and interfaces. We include in this package the most fundamental types. Use go doc to get more thorough documentation about what is inside this package and when to put a type inside this package.