xcore

package module
v0.0.0-...-7ab3369 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

Golang backend server toolkit

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL