Giter VIP home page Giter VIP logo

star-im's Introduction

star-im

基于 Golang 的即时通信系统(IM)

核心功能

  • 短信发送与接受
    • 文字、表情、图片、语音、视频等
  • 访客模式
  • 点对点私聊、群聊、广播、机器人等
  • 心跳检测下线
  • 快捷回复
  • 撤回记录
  • 拉黑等

需要技术栈

前端

  • H5 Ajax 获取音频
  • Websocket 发送消息
  • Js/Vue 单页面App
  • Mui/css3 等

后端

架构划分

  • 客户端:H5
  • 接入层:TCP、HTTP/HTTPS、WebSocket
  • 逻辑层:鉴权、登录、消息接收/发送、单聊/群聊/广播、心跳检测、用户/关系管理
  • 存储层:SQL(MySQL)、NoSQL(Redis)、MQ

网络结构

App/浏览器/接口 - Websocket调用接口 > 应用服务器 - 推送、获取> 数据库

发送流程

游客->鉴权
 用户->登录->鉴权->获取websocket连接->发送消息->根据消息类型推送到不同用户
Loading

网站

步骤

# 进入项目
cd ./star-im

# 更新依赖
go mod tidy

其他

swagger 进入到 main.go所在目录执行

swag init

star-im's People

Contributors

biuhe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.