Documentation
¶
Overview ¶
Package sunshine is a powerful Go development framework, it's easy to develop web and microservice projects. repo: https://github.com/18721889353/sunshine docs: https://go-sunshine.com
Usage: sunshine [command]
Available Commands: completion Generate the autocompletion script for the specified shell config Generate go config code from yaml file configmap Generate k8s configmap help Help about any command init Initialize sunshine merge Merge the generated code into the template file micro Generate protobuf, model, cache, dao, service, grpc, grpc+http, grpc-gw, grpc-cli code patch Command set for patching service code plugins Managing sunshine dependency plugins run Run the sunshine ui service upgrade Upgrade sunshine version web Generate model, cache, dao, handler, http code
Flags: -h, --help help for sunshine -v, --version version for sunshine
Use "sunshine [command] --help" for more information about a command.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
cmd
|
|
|
protoc-gen-go-gin
command
Package main generate *.go(tmpl), *_router.go, *_http.go, *_router.pb.go code based on proto files.
|
Package main generate *.go(tmpl), *_router.go, *_http.go, *_router.pb.go code based on proto files. |
|
protoc-gen-go-gin/internal/generate/handler
Package handler is to generate template code, router code, and error code.
|
Package handler is to generate template code, router code, and error code. |
|
protoc-gen-go-gin/internal/generate/router
Package router 是用于生成 Gin 路由代码的包。
|
Package router 是用于生成 Gin 路由代码的包。 |
|
protoc-gen-go-gin/internal/generate/service
Package service is to generate template code, router code, and error code.
|
Package service is to generate template code, router code, and error code. |
|
protoc-gen-go-gin/internal/parse
Package parse 提供 Protobuf 方法解析和 HTTP 规则构建功能。
|
Package parse 提供 Protobuf 方法解析和 HTTP 规则构建功能。 |
|
protoc-gen-go-rpc-tmpl
command
Package main is to generate *.go(tmpl), *_client_test.go, *_rpc.go files.
|
Package main is to generate *.go(tmpl), *_client_test.go, *_rpc.go files. |
|
protoc-gen-go-rpc-tmpl/internal/generate/service
Package service is to generate template code, test code, and error code.
|
Package service is to generate template code, test code, and error code. |
|
protoc-gen-go-rpc-tmpl/internal/parse
Package parse is parsed proto file to struct
|
Package parse is parsed proto file to struct |
|
protoc-gen-json-field
command
Package main is a library that parses protobuf files into json
|
Package main is a library that parses protobuf files into json |
|
protoc-gen-json-field/generate
Package generate is generate json field code.
|
Package generate is generate json field code. |
|
protoc-gen-json-field/parser
Package parser is parsed proto file to struct
|
Package parser is parsed proto file to struct |
|
serverNameExample_grpcExample
command
Package main is the grpc server of the application.
|
Package main is the grpc server of the application. |
|
serverNameExample_grpcExample/initial
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service.
|
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service. |
|
serverNameExample_grpcGwPbExample
command
Package main is the grpc gateway server of the application.
|
Package main is the grpc gateway server of the application. |
|
serverNameExample_grpcGwPbExample/initial
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service.
|
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service. |
|
serverNameExample_grpcHttpPbExample
command
Package main is the http and grpc server of the application.
|
Package main is the http and grpc server of the application. |
|
serverNameExample_grpcHttpPbExample/initial
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service.
|
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service. |
|
serverNameExample_grpcPbExample
command
Package main is the grpc server of the application.
|
Package main is the grpc server of the application. |
|
serverNameExample_grpcPbExample/initial
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service.
|
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service. |
|
serverNameExample_httpExample
command
Package main is the http server of the application.
|
Package main is the http server of the application. |
|
serverNameExample_httpExample/initial
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service.
|
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service. |
|
serverNameExample_httpPbExample
command
Package main is the http server of the application.
|
Package main is the http server of the application. |
|
serverNameExample_httpPbExample/initial
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service.
|
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service. |
|
serverNameExample_mixExample
command
Package main is the http and grpc server of the application.
|
Package main is the http and grpc server of the application. |
|
serverNameExample_mixExample/initial
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service.
|
Package initial is the package that starts the service to initialize the service, including the initialization configuration, service configuration, connecting to the database, and resource release needed when shutting down the service. |
|
sunshine
command
Package main sunshine is a basic development framework that integrates code auto generation, Gin and GRPC, a microservice framework.
|
Package main sunshine is a basic development framework that integrates code auto generation, Gin and GRPC, a microservice framework. |
|
sunshine/commands
Package commands 包含 sunshine 命令的所有子命令。
|
Package commands 包含 sunshine 命令的所有子命令。 |
|
sunshine/commands/assistant
Package assistant 提供代码生成助手功能。
|
Package assistant 提供代码生成助手功能。 |
|
sunshine/commands/generate
Package generate is to generate code, including model, cache, dao, handler, http, service, grpc, grpc-gw, grpc-cli code.
|
Package generate is to generate code, including model, cache, dao, handler, http, service, grpc, grpc-gw, grpc-cli code. |
|
sunshine/commands/merge
Package merge is merge the generated code into the template file, you don't worry about it affecting the logic code you have already written, in case of accidents, you can find the pre-merge code in the directory /tmp/sunshine_merge_backup_code
|
Package merge is merge the generated code into the template file, you don't worry about it affecting the logic code you have already written, in case of accidents, you can find the pre-merge code in the directory /tmp/sunshine_merge_backup_code |
|
sunshine/commands/patch
Package patch is command set for patching service code.
|
Package patch is command set for patching service code. |
|
sunshine/commands/template
Package template provides commands to generate custom code.
|
Package template provides commands to generate custom code. |
|
sunshine/server
Package server is a sunshine UI service that contains the front-end pages.
|
Package server is a sunshine UI service that contains the front-end pages. |
|
Package configs used to locate config file.
|
Package configs used to locate config file. |
|
internal
|
|
|
cache
Package cache 缓存层 提供 Redis 和本地缓存的统一接口,支持分布式锁、防击穿、防穿透等功能
|
Package cache 缓存层 提供 Redis 和本地缓存的统一接口,支持分布式锁、防击穿、防穿透等功能 |
|
consts
Package consts 定义项目通用常量
|
Package consts 定义项目通用常量 |
|
cron
Package cron 提供定时任务管理功能
|
Package cron 提供定时任务管理功能 |
|
cron/tasks
Package tasks 包含定时任务实现
|
Package tasks 包含定时任务实现 |
|
dao
Package dao is the data access object, the code for database operation is unified here.
|
Package dao is the data access object, the code for database operation is unified here. |
|
database
Package database 数据库层 提供 MySQL、Redis、RabbitMQ、Elasticsearch 等数据源的初始化和连接管理
|
Package database 数据库层 提供 MySQL、Redis、RabbitMQ、Elasticsearch 等数据源的初始化和连接管理 |
|
ecode
Package ecode is the package that unifies the definition of http error codes or grpc error codes here.
|
Package ecode is the package that unifies the definition of http error codes or grpc error codes here. |
|
handler
Package handler is a package of http request processing business logic.
|
Package handler is a package of http request processing business logic. |
|
model
Package model contains the data models used in the application.
|
Package model contains the data models used in the application. |
|
mq/rabbitmq
Package mq 提供 RabbitMQ 消息队列的通用消费者接口和注册管理功能。
|
Package mq 提供 RabbitMQ 消息队列的通用消费者接口和注册管理功能。 |
|
mq/rabbitmq/consumers
Package consumers 提供应用程序的 RabbitMQ 消息消费者。
|
Package consumers 提供应用程序的 RabbitMQ 消息消费者。 |
|
routers
Package routers 路由层 提供 HTTP 路由配置、自定义响应处理、中间件注册等功能
|
Package routers 路由层 提供 HTTP 路由配置、自定义响应处理、中间件注册等功能 |
|
rpcclient
Package rpcclient is the rpc client package, used to connect to grpc server, rich plugin support by default, such as service discovery, load balancing, link tracking and so on.
|
Package rpcclient is the rpc client package, used to connect to grpc server, rich plugin support by default, such as service discovery, load balancing, link tracking and so on. |
|
server
Package server is a package that holds the http or grpc service.
|
Package server is a package that holds the http or grpc service. |
|
service
Package service A grpc server-side or client-side package that handles business logic.
|
Package service A grpc server-side or client-side package that handles business logic. |
|
types
Package types define the structure of request parameters and return results in this package
|
Package types define the structure of request parameters and return results in this package |
|
pkg
|
|
|
aicli/chatgpt
Package gptclient 提供与 OpenAI ChatGPT API 交互的客户端。
|
Package gptclient 提供与 OpenAI ChatGPT API 交互的客户端。 |
|
aicli/deepseek
Package deepseek 提供与 DeepSeek API 交互的客户端。
|
Package deepseek 提供与 DeepSeek API 交互的客户端。 |
|
app
Package app 负责优雅地启动和停止服务,使用 golang.org/x/sync/errgroup 确保多个服务同时启动。
|
Package app 负责优雅地启动和停止服务,使用 golang.org/x/sync/errgroup 确保多个服务同时启动。 |
|
cache
Package cache is redis cache libraries.
|
Package cache is redis cache libraries. |
|
conf
Package conf 是解析 YAML、JSON、TOML 配置文件到 Go 结构体的包。
|
Package conf 是解析 YAML、JSON、TOML 配置文件到 Go 结构体的包。 |
|
consulcli
Package consulcli 是连接到 Consul 服务的客户端包。
|
Package consulcli 是连接到 Consul 服务的客户端包。 |
|
container/group
Package group provides a sample lazy load container.
|
Package group provides a sample lazy load container. |
|
dlock
Package dlock 提供分布式锁原语,支持 Redis 和 etcd。
|
Package dlock 提供分布式锁原语,支持 Redis 和 etcd。 |
|
dump
Package dump like fmt.Println but more pretty and beautiful print Go values.
|
Package dump like fmt.Println but more pretty and beautiful print Go values. |
|
email
Package email 提供邮件发送功能
|
Package email 提供邮件发送功能 |
|
encoding
Package encoding Provides encoding and decoding of json, protobuf and gob.
|
Package encoding Provides encoding and decoding of json, protobuf and gob. |
|
encoding/json
Package json is a JSON encoding and decoding.
|
Package json is a JSON encoding and decoding. |
|
encoding/proto
Package proto is a protobuf encoding and decoding.
|
Package proto is a protobuf encoding and decoding. |
|
errcode
Package errcode 用于定义 HTTP 和 gRPC 错误码,包括系统级别的错误码和业务级别的错误码
|
Package errcode 用于定义 HTTP 和 gRPC 错误码,包括系统级别的错误码和业务级别的错误码 |
|
es
Package es 提供 Elasticsearch 客户端配置和连接管理功能。
|
Package es 提供 Elasticsearch 客户端配置和连接管理功能。 |
|
etcdcli
Package etcdcli 用于连接到 etcd 服务
|
Package etcdcli 用于连接到 etcd 服务 |
|
exceltool
Package exceltool 提供 Excel 文件处理工具。
|
Package exceltool 提供 Excel 文件处理工具。 |
|
gin/frontend
Package frontend embeds the frontend static file and adds routing.
|
Package frontend embeds the frontend static file and adds routing. |
|
gin/handlerfunc
Package handlerfunc is used for public http request handler.
|
Package handlerfunc is used for public http request handler. |
|
gin/middleware
Package middleware is gin middleware plugin.
|
Package middleware is gin middleware plugin. |
|
gin/middleware/metrics
Package metrics is gin metrics library, collect five metrics, "uptime", "http_request_count_total", "http_request_duration_seconds", "http_request_size_bytes", "http_response_size_bytes".
|
Package metrics is gin metrics library, collect five metrics, "uptime", "http_request_count_total", "http_request_duration_seconds", "http_request_size_bytes", "http_response_size_bytes". |
|
gin/prof
Package prof is used for gin profiling.
|
Package prof is used for gin profiling. |
|
gin/response
Package response provides wrapper gin returns json data in the same format.
|
Package response provides wrapper gin returns json data in the same format. |
|
gin/swagger
Package swagger is gin swagger library.
|
Package swagger is gin swagger library. |
|
gin/validator
Package validator is gin request parameter check library.
|
Package validator is gin request parameter check library. |
|
goMq/gorabbitmq
Package gorabbitmq 提供 RabbitMQ 消息队列的高性能客户端实现。
|
Package gorabbitmq 提供 RabbitMQ 消息队列的高性能客户端实现。 |
|
goMq/gorabbitmq/connExample
command
Package main 是 RabbitMQ 连接示例程序。
|
Package main 是 RabbitMQ 连接示例程序。 |
|
goMq/gorabbitmq/consumerExample/dead/customerDead
command
Package main 是 RabbitMQ 死信队列消费者示例程序。
|
Package main 是 RabbitMQ 死信队列消费者示例程序。 |
|
goMq/gorabbitmq/consumerExample/dead/dead
command
Package main 是 RabbitMQ 死信队列消费者示例程序。
|
Package main 是 RabbitMQ 死信队列消费者示例程序。 |
|
goMq/gorabbitmq/consumerExample/normal
command
Package main 是 RabbitMQ 普通队列消费者示例程序。
|
Package main 是 RabbitMQ 普通队列消费者示例程序。 |
|
goMq/gorabbitmq/gorabbitmqClient
Package gorabbitmqclient 提供 RabbitMQ 客户端封装。
|
Package gorabbitmqclient 提供 RabbitMQ 客户端封装。 |
|
goMq/gorabbitmq/gorabbitmqConsumer
Package gorabbitmqconsumer 提供 RabbitMQ 消费者的基础实现。
|
Package gorabbitmqconsumer 提供 RabbitMQ 消费者的基础实现。 |
|
goMq/gorabbitmq/poolExample
command
Package main 是 RabbitMQ 连接池使用示例程序。
|
Package main 是 RabbitMQ 连接池使用示例程序。 |
|
goMq/gorabbitmq/produceExample/dead/customerDead
command
Package main 是 RabbitMQ 死信队列消费者示例程序。
|
Package main 是 RabbitMQ 死信队列消费者示例程序。 |
|
goMq/gorabbitmq/produceExample/dead/dead
command
Package main 是 RabbitMQ 死信队列生产者示例程序。
|
Package main 是 RabbitMQ 死信队列生产者示例程序。 |
|
goMq/gorabbitmq/produceExample/normal
command
Package main 是 RabbitMQ 普通队列生产者示例程序。
|
Package main 是 RabbitMQ 普通队列生产者示例程序。 |
|
goMq/gorabbitmq/test
command
Package main 是 RabbitMQ 功能测试程序。
|
Package main 是 RabbitMQ 功能测试程序。 |
|
gobash
Package gobash provides the ability to execute commands, scripts, executables in the go environment with live log output.
|
Package gobash provides the ability to execute commands, scripts, executables in the go environment with live log output. |
|
gocron
Package gocron is scheduled task library.
|
Package gocron is scheduled task library. |
|
gocrypto
Package gocrypto is commonly used one-way encryption, symmetric encryption and decryption, asymmetric encryption and decryption libraries, including hash, aes, des, rsa.
|
Package gocrypto is commonly used one-way encryption, symmetric encryption and decryption, asymmetric encryption and decryption libraries, including hash, aes, des, rsa. |
|
gocrypto/wcipher
Package wcipher is a package to encrypt and decrypt data.
|
Package wcipher is a package to encrypt and decrypt data. |
|
gofile
Package gofile is file and directory management libraries.
|
Package gofile is file and directory management libraries. |
|
gogm/gosm2
Package gosm2 提供国密 SM2 非对称加密算法的封装。
|
Package gosm2 提供国密 SM2 非对称加密算法的封装。 |
|
gogm/gosm2/example
command
Package main 是国密 SM2 算法示例程序。
|
Package main 是国密 SM2 算法示例程序。 |
|
gogm/gosm3
Package gosm3 提供国密 SM3 哈希算法实现。
|
Package gosm3 提供国密 SM3 哈希算法实现。 |
|
gogm/gosm3/example
command
Package main 是国密 SM3 哈希算法的示例程序。
|
Package main 是国密 SM3 哈希算法的示例程序。 |
|
gogm/gosm4
Package gosm4 提供国密 SM4 对称加密算法的封装。
|
Package gosm4 提供国密 SM4 对称加密算法的封装。 |
|
gogm/gosm4/exampl
command
Package main 演示 SM4 加密/解密示例。
|
Package main 演示 SM4 加密/解密示例。 |
|
gogm/sm
command
Package main 是国密 SM2/SM3/SM4 算法的示例程序。
|
Package main 是国密 SM2/SM3/SM4 算法的示例程序。 |
|
gohttp
Package gohttp is http request client, which only supports returning json format.
|
Package gohttp is http request client, which only supports returning json format. |
|
goredis
Package goredis 是基于 github.com/go-redis/redis 封装的 Redis 客户端库
|
Package goredis 是基于 github.com/go-redis/redis 封装的 Redis 客户端库 |
|
gorsa
Package gorsa 提供 RSA 非对称加密算法的封装。
|
Package gorsa 提供 RSA 非对称加密算法的封装。 |
|
gorsa/example
command
Package main 是 RSA 加密解密和签名验证的示例程序。
|
Package main 是 RSA 加密解密和签名验证的示例程序。 |
|
gotest
Package gotest is a library that simulates the testing of cache, dao and handler.
|
Package gotest is a library that simulates the testing of cache, dao and handler. |
|
grpc/benchmark
Package benchmark is compression testing of rpc methods and generation of reported results.
|
Package benchmark is compression testing of rpc methods and generation of reported results. |
|
grpc/client
Package client is generic grpc client-side.
|
Package client is generic grpc client-side. |
|
grpc/grpccli
Package grpccli is grpc client with support for service discovery, logging, load balancing, trace, metrics, retries, circuit breaker.
|
Package grpccli is grpc client with support for service discovery, logging, load balancing, trace, metrics, retries, circuit breaker. |
|
grpc/gtls
Package gtls provides grpc secure connectivity, supporting both server-only authentication and client-server authentication.
|
Package gtls provides grpc secure connectivity, supporting both server-only authentication and client-server authentication. |
|
grpc/gtls/certfile
Package certfile is used to locate the certificate file.
|
Package certfile is used to locate the certificate file. |
|
grpc/interceptor
Package interceptor provides commonly used grpc client-side and server-side interceptors.
|
Package interceptor provides commonly used grpc client-side and server-side interceptors. |
|
grpc/keepalive
Package keepalive is setting grpc keepalive parameters.
|
Package keepalive is setting grpc keepalive parameters. |
|
grpc/metrics
Package metrics is grpc's server-side and client-side metrics can continue to be captured using prometheus.
|
Package metrics is grpc's server-side and client-side metrics can continue to be captured using prometheus. |
|
grpc/resolve
Package resolve is setting grpc client-side load balancing policy.
|
Package resolve is setting grpc client-side load balancing policy. |
|
grpc/server
Package server is generic grpc server-side.
|
Package server is generic grpc server-side. |
|
httpcli
Package httpcli 提供 HTTP 客户端封装。
|
Package httpcli 提供 HTTP 客户端封装。 |
|
jwt
Package jwt is token generation and validation.
|
Package jwt is token generation and validation. |
|
jy2struct
Package jy2struct is a library for generating go struct code, supporting json and yaml.
|
Package jy2struct is a library for generating go struct code, supporting json and yaml. |
|
kafka
Package kafka is a kafka client package.
|
Package kafka is a kafka client package. |
|
krand
Package krand is a library for generating random strings, integers, floating point numbers.
|
Package krand is a library for generating random strings, integers, floating point numbers. |
|
logger
Package logger 是封装在 https://github.com/uber-go/zap 中的日志库
|
Package logger 是封装在 https://github.com/uber-go/zap 中的日志库 |
|
nacoscli
Package nacoscli 提供 Nacos 配置中心客户端。
|
Package nacoscli 提供 Nacos 配置中心客户端。 |
|
prof
Package prof is wrap the official `net/http/pprof` route and add the profile io wait time route.
|
Package prof is wrap the official `net/http/pprof` route and add the profile io wait time route. |
|
replacer
Package replacer 是一个用于替换文件内容的库,支持本地目录和嵌入目录文件的替换。
|
Package replacer 是一个用于替换文件内容的库,支持本地目录和嵌入目录文件的替换。 |
|
sdk/tk
command
Package main TK SDK使用示例
|
Package main TK SDK使用示例 |
|
sdk/tk/api/auth/createtokenrequest
Package createtokenrequest 提供创建令牌API的请求类型
|
Package createtokenrequest 提供创建令牌API的请求类型 |
|
sdk/tk/api/auth/createtokenresponse
Package createtokenresponse 提供创建令牌API的响应类型
|
Package createtokenresponse 提供创建令牌API的响应类型 |
|
sdk/tk/api/create_order/request
Package create_order_request 创建订单请求包
|
Package create_order_request 创建订单请求包 |
|
sdk/tk/api/create_order/response
Package create_order_response 创建订单响应包
|
Package create_order_response 创建订单响应包 |
|
sdk/tk/api/get_coupon_num/request
Package get_coupon_num_request 获取优惠券数量请求包
|
Package get_coupon_num_request 获取优惠券数量请求包 |
|
sdk/tk/api/get_coupon_num/response
Package get_coupon_num_response 获取优惠券数量响应包
|
Package get_coupon_num_response 获取优惠券数量响应包 |
|
sdk/tk/api/getcard/request
Package getcardrequest provides request types for get card API
|
Package getcardrequest provides request types for get card API |
|
sdk/tk/api/getcard/response
Package getcardresponse 提供获取卡片API的响应类型
|
Package getcardresponse 提供获取卡片API的响应类型 |
|
sdk/tk/api/getcouponinfo/request
Package getcouponinforequest 获取优惠券信息请求包
|
Package getcouponinforequest 获取优惠券信息请求包 |
|
sdk/tk/api/getcouponinfo/response
Package getcouponinforesponse 提供获取优惠券信息API的响应类型
|
Package getcouponinforesponse 提供获取优惠券信息API的响应类型 |
|
sdk/tk/api/place_order/request
Package place_order_request 下单请求包
|
Package place_order_request 下单请求包 |
|
sdk/tk/api/place_order/response
Package place_order_response 下单响应包
|
Package place_order_response 下单响应包 |
|
sdk/tk/core
Package core 提供 TK SDK 的核心功能。
|
Package core 提供 TK SDK 的核心功能。 |
|
sdk/tk/errors
Package errors provides error codes and types for the TK SDK.
|
Package errors provides error codes and types for the TK SDK. |
|
sdk/tk/utils
Package utils 提供通用工具函数
|
Package utils 提供通用工具函数 |
|
servicerd/discovery
Package discovery is service discovery library, supports etcd, consul and nacos.
|
Package discovery is service discovery library, supports etcd, consul and nacos. |
|
servicerd/registry
Package registry 是一个服务注册库,支持 etcd、consul 和 nacos。
|
Package registry 是一个服务注册库,支持 etcd、consul 和 nacos。 |
|
servicerd/registry/etcd
Package etcd is registered as a service using etcd.
|
Package etcd is registered as a service using etcd. |
|
sgorm
Package sgorm is a library encapsulated on gorm.io/gorm
|
Package sgorm is a library encapsulated on gorm.io/gorm |
|
sgorm/dbclose
Package dbclose provides a function to close gorm db.
|
Package dbclose provides a function to close gorm db. |
|
sgorm/glog
Package glog provides a gorm logger implementation based on the project logger.
|
Package glog provides a gorm logger implementation based on the project logger. |
|
sgorm/mysql
Package mysql provides a gorm driver for mysql.
|
Package mysql provides a gorm driver for mysql. |
|
sgorm/query
Package query is a library of custom condition queries, support for complex conditional paging queries.
|
Package query is a library of custom condition queries, support for complex conditional paging queries. |
|
shield/circuitbreaker
Package circuitbreaker is an adaptive circuit breaker library, support for use in gin middleware and grpc interceptors.
|
Package circuitbreaker is an adaptive circuit breaker library, support for use in gin middleware and grpc interceptors. |
|
shield/cpu
Package cpu is a library that calculates cpu and memory usage.
|
Package cpu is a library that calculates cpu and memory usage. |
|
shield/ratelimit
Package ratelimit is an adaptive rate limit library, support for use in gin middleware and grpc interceptors.
|
Package ratelimit is an adaptive rate limit library, support for use in gin middleware and grpc interceptors. |
|
shield/window
Package window is a library that calculates windows cpu and memory usage.
|
Package window is a library that calculates windows cpu and memory usage. |
|
sql2code
Package sql2code 提供根据 SQL 生成不同用途代码的功能, 支持生成 JSON、GORM 模型、更新参数、请求参数代码, SQL 可以从参数、文件、数据库三种方式获取,优先级从高到低。
|
Package sql2code 提供根据 SQL 生成不同用途代码的功能, 支持生成 JSON、GORM 模型、更新参数、请求参数代码, SQL 可以从参数、文件、数据库三种方式获取,优先级从高到低。 |
|
sql2code/parser
Package parser is a library that parses to go structures based on sql and generates the code needed based on the template.
|
Package parser is a library that parses to go structures based on sql and generates the code needed based on the template. |
|
stat
Package stat provides for counting system and process cpu and memory information, alarm notification support.
|
Package stat provides for counting system and process cpu and memory information, alarm notification support. |
|
stat/cpu
Package cpu is a library that counts system and process cpu usage.
|
Package cpu is a library that counts system and process cpu usage. |
|
stat/mem
Package mem is a library that counts system and process memory usage.
|
Package mem is a library that counts system and process memory usage. |
|
tracer
Package tracer is a library wrapped in go.opentelemetry.io/otel.
|
Package tracer is a library wrapped in go.opentelemetry.io/otel. |
|
upload
Package upload 提供文件上传功能。
|
Package upload 提供文件上传功能。 |
|
utils
Package utils is a library of commonly used utility functions.
|
Package utils is a library of commonly used utility functions. |
|
utils/decimalutil
Package decimalutil provides utility functions for decimal arithmetic operations.
|
Package decimalutil provides utility functions for decimal arithmetic operations. |
|
utils/jsonutil
Package jsonutil 提供 JSON 处理工具函数。
|
Package jsonutil 提供 JSON 处理工具函数。 |
|
utils/jsonutil/example
command
Package main 演示 jsonutil 包的使用示例。
|
Package main 演示 jsonutil 包的使用示例。 |
|
ws
Package ws provides a WebSocket server implementation.
|
Package ws provides a WebSocket server implementation. |