morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::SessionOptions Struct Reference

What a Session is built with. More...

#include <interpreter.hpp>

Public Attributes

reactive::Scheduler * scheduler = nullptr
 Timers for debounce, refreshEvery and the cache's eviction. Without one, debounce fetches at once, refreshEvery never ticks and unused entries are kept. Borrowed.
std::function< std::chrono::milliseconds()> clock
 The clock staleTime is measured on; empty uses std::chrono::steady_clock.
std::chrono::milliseconds keepUnused {std::chrono::minutes{5}}
 How long an entry no mounted query uses is kept (spec 5 §5: five minutes).
Catalog catalog
 The catalog: stateless decides an alias's default instance; an action's secretFields are never cached or kept in result.
std::function< std::string(std::exception_ptr const &)> classify
 Maps a failed call to its error kind (denied, offline, timeout, …); empty uses the default, which knows the bridge's own failures and calls everything else error.
DevelopmentTools developmentTools = DevelopmentTools::Off
 Development mode: whether this session's screens record what the inspector reads. Off by default.
Watcher watcher
 Sends the cache's watch changes to the server. Empty: the session still counts what its cache holds, and sends nothing, which is right for a local source, whose replies carry every change it sees.
std::size_t maxInlineFileBytes = kDefaultInlineFileBytes
 The most bytes a document moves inline in one file (download from bytes, upload into bytes, a field component writing a base64 member); 1 to kMaxInlineFileBytes.

Detailed Description

What a Session is built with.

Definition at line 421 of file interpreter.hpp.

Member Data Documentation

◆ scheduler

reactive::Scheduler* morph::ui::SessionOptions::scheduler = nullptr

Timers for debounce, refreshEvery and the cache's eviction. Without one, debounce fetches at once, refreshEvery never ticks and unused entries are kept. Borrowed.

Definition at line 424 of file interpreter.hpp.

◆ clock

std::function<std::chrono::milliseconds()> morph::ui::SessionOptions::clock

The clock staleTime is measured on; empty uses std::chrono::steady_clock.

Definition at line 426 of file interpreter.hpp.

◆ keepUnused

std::chrono::milliseconds morph::ui::SessionOptions::keepUnused {std::chrono::minutes{5}}

How long an entry no mounted query uses is kept (spec 5 §5: five minutes).

Definition at line 428 of file interpreter.hpp.

◆ catalog

Catalog morph::ui::SessionOptions::catalog

The catalog: stateless decides an alias's default instance; an action's secretFields are never cached or kept in result.

Definition at line 431 of file interpreter.hpp.

◆ classify

std::function<std::string(std::exception_ptr const&)> morph::ui::SessionOptions::classify

Maps a failed call to its error kind (denied, offline, timeout, …); empty uses the default, which knows the bridge's own failures and calls everything else error.

Definition at line 434 of file interpreter.hpp.

◆ developmentTools

DevelopmentTools morph::ui::SessionOptions::developmentTools = DevelopmentTools::Off

Development mode: whether this session's screens record what the inspector reads. Off by default.

Definition at line 436 of file interpreter.hpp.

◆ watcher

Watcher morph::ui::SessionOptions::watcher

Sends the cache's watch changes to the server. Empty: the session still counts what its cache holds, and sends nothing, which is right for a local source, whose replies carry every change it sees.

Definition at line 439 of file interpreter.hpp.

◆ maxInlineFileBytes

std::size_t morph::ui::SessionOptions::maxInlineFileBytes = kDefaultInlineFileBytes

The most bytes a document moves inline in one file (download from bytes, upload into bytes, a field component writing a base64 member); 1 to kMaxInlineFileBytes.

Definition at line 442 of file interpreter.hpp.


The documentation for this struct was generated from the following file: