Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/offliney/onlinechat

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/offliney/onlinechat

  • v0.0.0-20230807084610-76929c08c6b2
  • Source
  • Go
  • Socket score

Version published
Created
Source

LiveChat

Lightweight chat application implemented with golang.

Warning v3.x is still developing.

New features

  • New ui(tailwindcss+react)
  • New database(mongodb)

Getting started

git clone https://github.com/OfflineY/LiveChat.git
cd LiveChat
go mod download
go run main.go

Api

Note main.go return example:{"data": "[main data]", "msg": "[err or nil]"}


Group 对群组的操作

Search Group

[GET] api/groups/search

[PARAMS] ?name=[group_name]&id=[groups_id]

Note take at least one of the two key values. return data:[...] and msg:nil/err

Create Group

[POST] api/groups/create

[JSON] {"name":"[group_name]"}

Note return "data":{"group_id": "...", "group_status": "<T/F>", "group_name": "..."} and msg:nil/err

Group Historical messages

[GET] api/groups/[group_id]/messages

Note return "data":[{"_id":"...","group_id":"...","group_name":"...","msg":"...","msg_type":"[text/image]","send_time":"...","url":"...","user_name":"..."}...] and msg:nil/err

Group Info

[GET] api/groups/[group_id]/info

Note return "data":"[...]" and "msg":nil/err


User 用户操作

User Login

[POST] api/user/login

[JSON] {"user_name": "[user_name]", "password": "[password]"}

Note return "data":"[...]" and "msg":nil/err

User Register

[POST] api/user/register

[JSON] {"user_name": "[user_name]", "password": "[password]"}

Note return "data":"[...]" and "msg":nil/err

FAQs

Package last updated on 07 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc