1 Star 0 Fork 4

junioryang/go-im

forked from Go application/go-im 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
pl1998 提交于 2021-12-05 19:17 . add registered user and send email api
/*
Copyright © 2021 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
import (
"flag"
"im_app/config"
"im_app/core"
"im_app/core/tcp"
"im_app/pkg/wordsfilter"
"im_app/pkg/zaplog"
)
func init() {
config.Initialize()
wordsfilter.SetTexts()
zaplog.InitZapLogger()
}
// @title go-im 接口文档
// @version 2.0
// @description
// @contact.name go-core
// @contact.url https://im.pltrue.top
// @contact.email pltrueover@gmail.com
// @license.name MIT
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host 114.132.40.112:9502
// @BasePath /api
func main() {
var serve string
flag.StringVar(&serve, "serve", "", "选择运行的服务🚀")
flag.Parse()
switch serve {
case "http":
// 启动rpc服务
core.StartHttp()
case "tcp-serve":
tcp.StartTcpServe()
case "tcp-rpc_client":
tcp.StartTcpClient()
default:
// 启动rpc服务
core.StartHttp()
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/junioryang/go-im.git
git@gitee.com:junioryang/go-im.git
junioryang
go-im
go-im
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385