ObservantApi class abstract interface

What a page asks of ObservANT; the web and the native file each implement it, so the analyzer holds them in step.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchFrom(String url) → Future<String?>
The body of a GET to url on another ObservANT, which lets this page read it (peers).
fetchHealthz() → Future<String?>
ObservANT's /healthz.
fetchObservantSettings() → Future<String?>
ObservANT's /settings.
fetchVisits() → Future<String?>
ObservANT's /visits: the last 30 days' visits, read when the statistics open.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postToObservant(String path, Map<String, Object> body, {Future<void>? cancel}) → Future<ObservantReply?>
POSTs body to path and returns the answer whatever its status; null when none came or cancel ended it.
saveObservantSettings(Map<String, Object> update) → Future<bool>
Changes the values in update on ObservANT; JSON, as it takes no other body.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited