turms-im / turms

🕊️ The world's most advanced open source instant messaging engine for 100K~10M concurrent users https://turms-im.github.io/docs
Apache License 2.0
1.75k stars 270 forks source link

Add an interface/protocol for developers to implement storage logic in clients #747

Open JamesChenX opened 3 years ago

JamesChenX commented 3 years ago

Motivation

There are some common and frequently used IM features that need to implement based on the stored data.

But because we should not provide storage implementation for our users (it's related to encryption and what data to store, where to store, etc. Different products have different requirements anyway), we can just provide a storage interface for developers to implement so that we can provide more common + useful IM features on the client side.