akrennmair / cabinet Goto Github PK
View Code? Open in Web Editor NEWcabinet keeps your static files.
License: MIT License
cabinet keeps your static files.
License: MIT License
Migrate the storage-related part from boltdb to LevelDB.
Whenever a file is uploaded or deleted, record this event in a dedicated bucket with the following information:
The timestamp shall be part of the key so that all events can be iterated over. This will be useful for future features like replication.
Replication shall work the following way: through a commandline switch it is indicated that the particular instance is in child mode. When in child mode, a cabinet instance must not accept uploads or deletes through the usual API.
In child mode, a cabinet instance connects to the parent instance, and receives events through a WebSocket connection. It acts on upload events by requesting the corresponding file from the parent instance. Files that return 404 shall be ignored. It also acts on delete events by deleting the corresponding file from the local storage.
The child instance shall store what the timestamp of the latest event is. If it already exists, it shall be used to resume receiving events at the next start of the child instance.
Child instances are authenticated like API calls.
httprouter causes more hassle than it brings advantages, so get rid of it.
Drawer names must be verified in upload and store API calls. The allowed set of characters is "a-zA-Z0-9_.:,;$-"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.