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

How much a MemoryFileStore keeps. More...

#include <file_store.hpp>

Public Attributes

std::size_t maxFileBytes = std::size_t{64} * 1024 * 1024
 The largest file it accepts.
std::size_t maxBytesPerPrincipal = std::size_t{256} * 1024 * 1024
 The most bytes it keeps for one principal, uploads in progress included.
std::chrono::seconds uploadTtl {3600}
 How long an upload may go without a chunk before it is dropped.
std::function< std::chrono::steady_clock::time_point()> clock
 The clock expiry reads; the steady clock when empty.

Detailed Description

How much a MemoryFileStore keeps.

Definition at line 150 of file file_store.hpp.

Member Data Documentation

◆ maxFileBytes

std::size_t morph::ui::MemoryFileStoreOptions::maxFileBytes = std::size_t{64} * 1024 * 1024

The largest file it accepts.

Definition at line 152 of file file_store.hpp.

◆ maxBytesPerPrincipal

std::size_t morph::ui::MemoryFileStoreOptions::maxBytesPerPrincipal = std::size_t{256} * 1024 * 1024

The most bytes it keeps for one principal, uploads in progress included.

Definition at line 154 of file file_store.hpp.

◆ uploadTtl

std::chrono::seconds morph::ui::MemoryFileStoreOptions::uploadTtl {3600}

How long an upload may go without a chunk before it is dropped.

Definition at line 156 of file file_store.hpp.

◆ clock

std::function<std::chrono::steady_clock::time_point()> morph::ui::MemoryFileStoreOptions::clock

The clock expiry reads; the steady clock when empty.

Definition at line 158 of file file_store.hpp.


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