d5283bd8

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Move handler media access behind a store interface (#43)

Define the media and comment types that handlers consume and expand the
handler store interface to include media entry and comment reads. This
removes the server's direct dependency on little_moments.Metadata.

Add a store/memory adapter that converts imported metadata into the
handler-facing store shape while delegating visit counters to the
existing visit store. Wire cmd/app to compose the sqlite visit store
with the memory adapter before constructing handlers.

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/43
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 1s 34s 34s 36s
Build 3s 2m28s 57s 1m00s
Test - - - -
Deploy - - - -
Suite 0s 3m04s 59s 1m00s

Timeline

0s10s20s30s40s50s1m