0
0

More than 3 years have passed since last update.

raspiにスマートリモコン&メディアプレイヤーをのせてみた⑤

Last updated at Posted at 2021-05-23

はじめに

こちらのファイルサーバの解説です。

概要

ファイルサーバで以下の機能を提供

  • ウェブサーバからのバイナリ(ビデオファイル)を受信しファイル保存
  • ビデオファイル一覧をウェブサーバ・メディアサーバに送信

サーバ内の各層の機能概要

infrastructure

  • grpc
    • 他の機能との共通コンテンツの受信や送信
    • バイナリ(wsでpostされたファイル)をstreamで受信
  • file
    • 起動時にjsonファイルからファイル一覧を読み込みインメモリ化
    • インメモリで管理しているファイル一覧をjsonに保存
    • バイナリをmp4形式保存
    • mp4からanimeGIFを作成

adapter

共通設計参照

useCase

共通設計参照

domain

  • json.Marshal、json.Unmarshalなど標準パッケージ
  • インメモリのファイル管理情報の変更
  • 共通コンテンツの解析

リンク

ソースコード

こちら参照

セットアップ

こちら参照

共通設計

こちら参照

サーバ

以下参照
ウェブサーバ
メディアサーバ
デバイスサーバ

ブラウザ

こちら参照

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0