Skip to content

tgo-team/tgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgo

简介

一款简单,高效,扩展性极强的现代通讯服务器,适用于即时通讯,物联网通讯,AI智能等等

启动TGO

// 创建TGO
tg := tgo.New(tgo.NewOptions())

...

// 运行TGO
tg.Run()

自定义通信服务

tg.UseServer(tgo.NewServerTCP())

自定义数据协议

tg.UseProtocol(tgo.NewProtocolMQTT())

设置包处理者

tg.UseHandler(func(ctx tgo.Context) {

})

自定义路由

tg.UseRouter(router)

About

TGO(天狗)现代化通讯框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages