A Gitee-based internal-external network communication system that enables secure communication between networks through Gitee repositories.
Complete documentation is available in the docs/ directory:
- 📋 Start Here - Documentation Index - Main navigation and overview
- 🚀 Quick Start Guide - Project introduction and setup
- ⚙️ Configuration Guide - Setup instructions
- 📖 API Reference - Complete API documentation
- 💡 Examples & Patterns - Code examples and usage
- 🔌 Application Protocol - High-level API docs
- 🚚 Transport Protocol - Low-level transport docs
Create bapao.config.json:
{
"access_token": "your_gitee_access_token",
"user_name": "your_gitee_username",
"repo": "your_repository_name",
"file_path": "io"
}cargo build --release
cargo runuse bapao_app_protocal::{AppListener, TransUnitType};
fn hello() -> TransUnitType {
TransUnitType::String("Hello from Bapao!".to_string())
}
#[tokio::main]
async fn main() {
let mut listener = AppListener::new();
listener.add("/hello", hello);
listener.listen().await;
}- 🔐 Secure Communication through private Gitee repositories
- 📷 Screenshot Capture for remote monitoring
- 📁 File Transfer support for binary and text data
- 🔄 Request/Response structured communication pattern
- ⏰ Automatic Cleanup of expired requests (30min timeout)
- 🚀 Async/Await throughout for performance