The toolkit support to develop golang backend server as fast as quickly based on beego module, it easy to use Elastic, Nacos, MySQL, Redis, MQTT, GRPC services, and support wechat pay interfaces on version 3, the functions as follow.
Basic packages
-
invar
: Constant various and HTTP status definitions.
-
logger
: Custom logger base on beego log, enable remote send by MQTT.
-
secure
: Encript and decript utils of ASE、RSA、MD5、Base64、Hash and so on.
-
wechat
: Wechat pay utils base on version 3.
Extention packages
-
elastic
: Elastic service utils.
-
mqtt
: MQTT service and client utils.
-
mvc
: Backend server utils base on beego, export rest4 interfaces.
-
nacos
: Nacos configs and registry center utils.
-
utils
: Common utils of DingTack notify, file access, stack, queue, SMS, email, task and so on.
-
wrpc
: GRPC utils.
-
wsio
: Socket.IO utils.
The basic packages can import anywhere as base single module, but others as extend packages to import, them are reference the basic packages.
Usage
Construct a HTTP backend service as follow code in golang project.
package main
import (
_ "yourproject/routers"
"github.com/wengoldx/xcore/utils"
)
func main() {
utils.HttpServer()
}
Or get by the follow commands.
go get git@github.com:wengoldx/xcore.git