longweb

command module
v0.0.0-...-828062d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 12 Imported by: 0

README

LongWeb

Simple and easy go realtime-web gateway

GoDoc Go Report Card

1. Install

go get -u github.com/devfeel/longweb

2. Features

  • 支持Websocket\longpoll,消灭浏览器兼容之痛
  • 支持http与https,ws与wss协议
  • 原有业务系统无痛接入
  • 支持公开与授权模式(token)
  • 支持配置化部署
  • 支持连接数据持久化,目前支持influxdb

 

3. 主要文件说明

  • httpseerver/handlers/wshandler 处理websocket请求
  • httpseerver/handlers/pollhandler 处理长轮询请求(用于不支持websocket的访问端)
  • httpseerver/handlers/apihandler 处理与后端业务系统的交互  
  • message/message 后端业务系统的消息接收、处理、推送
  • message/userclient 用户连接的抽象
  • message/usergroup 用户组别
  • 其中三层:app-》group-》client  

4. 应用场景

  • 原有常规http系统需要支持websocket等长连接功能,无需开发改造,对接该网关轻松实现
  • 实时在线用户数统计系统
  • 聊天室类应用
  • 用户行为实时监测及反馈系统

基于 github.com/devfeel/dotweb 实现

Contact Us

QQ-Group:193409346

Documentation

Overview

devfeel.longweb * Author: Panxinming * LastUpdateTime: 2017-02-07 10:00

Directories

Path Synopsis
framework
http
httpHelper
httpHelper
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL