Skip to content

Liz2Z/bapao

Repository files navigation

基于 Gitee 的内外网通信系统

A Gitee-based internal-external network communication system that enables secure communication between networks through Gitee repositories.

📚 Documentation

Complete documentation is available in the docs/ directory:

Quick Setup

1. Configuration

Create bapao.config.json:

{
  "access_token": "your_gitee_access_token",
  "user_name": "your_gitee_username",
  "repo": "your_repository_name", 
  "file_path": "io"
}

2. Build and Run

cargo build --release
cargo run

3. Usage Example

use 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;
}

Features

  • 🔐 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

📖 See full documentation for detailed guides and examples →

About

基于 Gitee 的内外网通信系统

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages