paulusminus / lipl-storage

Rust crates for creating a json rest web server

Home Page:https://paulusminus.github.io/lipl-book/lipl-storage.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust Docker

Lipl Storage

A collection of crates that can be used to create a binary executable that handles the storage and retrieval of lyrics and playlists. Configuration of the storage backend is done through environment variables.

lipl-core

Models and LiplRepo trait. The latter is used to hide implementation details for the backend.

lipl-storage-fs

Storage on the filesystem.

Configuration example

export LIPL_STORAGE_REPO_TYPE=fs
export LIPL_STORAGE_FS_DIR=/home/paul/lipl_data/

lipl-storage-memory

Non persistent storage on internal memory.

Configuration example

export LIPL_STORAGE_REPO_TYPE=memory
export LIPL_STORAGE_MEMORY_SAMPLE=true

lipl-storage-postgres

Storage on a postgres db.

Configuration example

export LIPL_STORAGE_REPO_TYPE=postgres
export LIPL_STORAGE_POSTGRES_CONNECTION="host=/var/run/postgresql dbname=lipl"

lipl-storage-redis

Storage on a redis server.

Example configuration

export LIPL_STORAGE_REPO_TYPE=redis
export LIPL_STORAGE_REDIS_CONNECTION=redis://127.0.0.1/

lipl-sample-data

Sample data that can be used to play a demo or for testing.

lipl-storage-server

The server component handles web requests.

About

Rust crates for creating a json rest web server

https://paulusminus.github.io/lipl-book/lipl-storage.html

License:MIT License


Languages

Language:Rust 97.2%Language:PLpgSQL 1.8%Language:Lua 0.4%Language:Shell 0.4%Language:Dockerfile 0.2%