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>
configuredevShellbackendbackend-devcheck-bashcheck-frontendcheck-go-formattingcheck-trailing-newlinecheck-trailing-whitespacediagramdocker-imagee2e-testsgo-testsimport-from-tinybeanslint-sqllittle-momentslittle-moments-devx86_64-linux