Code Monkey home page Code Monkey logo

well_tcp_demo's Introduction

Well_TCP - Golang 轻量级TCP嵌入式服务器

Well_TCP

GitHub go.mod Go version GitHub AppVersion

介绍

Well_TCP是一款基于Golang的轻量级TCP嵌入式服务器,其为用户内置了路由模块、消息模块、链接模块、分组模块、日志模块,能够满足日常的开发。

使用go get下载依赖

git clone github.com/lvwei25/well_tcp_demo

关于本项目

本项目是Well_Tcp框架的开发示例,基本开发示例已经写好,用户只需要简单的配置,即可开发项目! 十分的简单方便!

配置

{
	"base": {
		"server_name": "Well_TCP",  //服务名称
		"ip_addr": "127.0.0.1",     //服务监听地址
		"port": "6666"              //服务监听端口
	},
	"mysql": {
		"username": "root",         //数据库用户名
		"password": "root",         //数据库密码
		"ip_addr": "127.0.0.1",     //数据库地址
		"port": "3306",             //数据库端口
		"database": "test",         //数据库
		"charset": "utf8"           //数据库编码
	}
}

SQL

本项目数据库方面只用了Mysql,并且是用的GORM库,操作起来是相当方便的,用户只需要在Server启动 时的回调函数对数据库进行连接即可,当然用户可以选择任何地方进行数据库的连接,但是前提是必须在 用户调用s.Run()方法前才可。

如何连接? sql.Connect()

Well 第一个版本发布于 2022 年 3 月 19 日

well_tcp_demo's People

Contributors

poopylee 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.