├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── go.mod ├── go.sum ├── server-common ├── config │ └── config.go ├── const │ ├── const.go │ └── server.go ├── driver │ ├── db.go │ └── es.go ├── nacosRF │ ├── init.go │ ├── serverFind.go │ └── serverRegister.go ├── pkg │ ├── elastic │ │ └── elastic.go │ ├── gorm │ │ └── gorm.go │ ├── httprequest │ │ └── httprequest.go │ ├── jwt │ │ └── jwt.go │ ├── leveldb │ │ └── leveldb.go │ ├── mongo │ │ └── mongo.go │ ├── redis │ │ └── redis.go │ ├── uber │ │ └── zap.go │ ├── viper │ │ └── viper.go │ ├── wetcd │ │ └── etcd.go │ └── wkafka │ │ ├── consumer.go │ │ └── producer.go ├── process │ └── process.go ├── servers │ └── servers.go └── utils │ ├── email │ └── email.go │ ├── encry │ ├── aes.go │ └── encry.go │ ├── enum │ ├── code.go │ └── response.go │ ├── ip │ └── ip.go │ ├── maps │ └── map.go │ ├── orm │ └── orm.go │ ├── regmatch │ └── regmatch.go │ ├── slice │ └── slice.go │ ├── wordsfilter │ ├── words_filter.txt │ └── wordsfilter.go │ └── wtime │ └── time.go ├── server-env ├── RabbitMQ.md ├── mongo.md └── mysql-redis-nacos │ ├── deploy_docker.sh │ ├── init_env.sh │ ├── mysql.yml │ ├── nacos-server.yml │ └── redis.yml ├── server-test ├── global │ └── config.go └── main.go ├── server-user ├── Makefile ├── boot │ ├── db.go │ ├── es.go │ ├── grpc.go │ ├── http.go │ ├── init.go │ ├── log.go │ └── ws.go ├── build.sh ├── cachedb │ └── server.go ├── core │ ├── db.go │ └── es.go ├── daos │ ├── account │ │ └── account.go │ ├── auth │ │ └── login.go │ └── serverDao │ │ └── server.go ├── global │ └── config.go ├── grpcservices │ ├── impl │ │ └── rpcUserService.go │ └── services │ │ └── RpcUserService.go ├── handler │ ├── auth │ │ └── login.go │ ├── user │ │ └── user.go │ └── ws.go ├── input │ ├── login.go │ └── user.go ├── main.go ├── middlewares │ ├── auth.go │ └── userIsEnable.go ├── models │ ├── server.go │ └── user.go ├── out │ ├── login.go │ └── user.go ├── pb │ ├── rpcUserService.pb.go │ └── rpcUserService_grpc.pb.go ├── proto │ └── rpcUserService.proto ├── router │ ├── api.go │ └── ws.go ├── rpc │ ├── demo.go │ └── rpc.go ├── run.sh ├── scripts │ └── generate_pb.sh ├── service │ ├── auth │ │ └── login.go │ └── user │ │ └── user.go ├── ulogger │ └── logger.go ├── up_package.sh └── ws │ └── ws.go └── test ├── aes_test.go ├── email_test.go ├── httprequest_test.go ├── map_test.go ├── regmatch_test.go ├── rpc_test.go ├── wordsfilter_test.go └── ws.html /.gitignore: -------------------------------------------------------------------------------- 1 | # default 2 | .DS_Store 3 | .idea 4 | .vscode 5 | .git 6 | *logs 7 | *level_db 8 | *gcache 9 | cache 10 | log 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 jeffcail 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | help: 2 | @echo "usage: make