common_pkg

module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT

README

公共包

介绍

{以下是 Gitee 平台说明,您可以替换此简介 Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 https://gitee.com/enterprises}

软件架构

软件架构说明

安装教程
  1. xxxx
  2. xxxx
  3. xxxx
使用说明
  1. xxxx
  2. xxxx
  3. xxxx
参与贡献
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
特技
  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

Directories

Path Synopsis
Package consulcli is connecting to the consul service client.
Package consulcli is connecting to the consul service client.
container
group
Package group provides a sample lazy load container.
Package group provides a sample lazy load container.
Package errcode is used for http and grpc error codes, include system-level error codes and business-level error codes
Package errcode is used for http and grpc error codes, include system-level error codes and business-level error codes
Package etcdcli is use for connecting to the etcd service
Package etcdcli is use for connecting to the etcd service
Package ggorm is a library wrapped on top of gorm.io/gorm, with added features such as link tracing, paging queries, etc.
Package ggorm is a library wrapped on top of gorm.io/gorm, with added features such as link tracing, paging queries, etc.
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.
gin
frontend
Package frontend embeds the frontend static file and adds routing.
Package frontend embeds the frontend static file and adds routing.
handlerfunc
Package handlerfunc is used for public http request handler.
Package handlerfunc is used for public http request handler.
middleware
Package middleware is gin middleware plugin.
Package middleware is gin middleware plugin.
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".
prof
Package prof is used for gin profiling.
Package prof is used for gin profiling.
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.
swagger
Package swagger is gin swagger library.
Package swagger is gin swagger library.
validator
Package validator is gin request parameter check library.
Package validator is gin request parameter check library.
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.
wcipher
Package wcipher is a package to encrypt and decrypt data.
Package wcipher is a package to encrypt and decrypt data.
Package gofile is file and directory management libraries.
Package gofile is file and directory management libraries.
Package goredis is a library wrapped on top of github.com/go-redis/redis.
Package goredis is a library wrapped on top of github.com/go-redis/redis.
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.
client
Package client is generic grpc client-side.
Package client is generic grpc client-side.
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.
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.
gtls/certfile
Package certfile is used to locate the certificate file.
Package certfile is used to locate the certificate file.
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.
keepalive
Package keepalive is setting grpc keepalive parameters.
Package keepalive is setting grpc keepalive parameters.
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.
resolve
Package resolve is setting grpc client-side load balancing policy.
Package resolve is setting grpc client-side load balancing policy.
server
Package server is generic grpc server-side.
Package server is generic grpc server-side.
Package httpcli is http request client, which only supports return json format.
Package httpcli is http request client, which only supports return json format.
Package jwt is token generation and validation.
Package jwt is token generation and validation.
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.
Package logger is log library encapsulated in https://github.com/uber-go/zap
Package logger is log library encapsulated in https://github.com/uber-go/zap
Package nacoscli provides for getting the configuration from the nacos configuration center and parse it into a structure.
Package nacoscli provides for getting the configuration from the nacos configuration center and parse it into a structure.
Package rabbitmq is a go wrapper for github.com/rabbitmq/amqp091-go
Package rabbitmq is a go wrapper for github.com/rabbitmq/amqp091-go
servicerd
discovery
Package discovery is service discovery library, supports etcd, consul and nacos.
Package discovery is service discovery library, supports etcd, consul and nacos.
registry
Package registry is service registry library, supports etcd, consul and nacos.
Package registry is service registry library, supports etcd, consul and nacos.
registry/consul
Package consul is registered as a service using consul.
Package consul is registered as a service using consul.
registry/etcd
Package etcd is registered as a service using etcd.
Package etcd is registered as a service using etcd.
registry/nacos
Package nacos is registered as a service using nacos.
Package nacos is registered as a service using nacos.
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.
cpu
Package cpu is a library that calculates cpu and memory usage.
Package cpu is a library that calculates cpu and memory usage.
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.
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.
Package tracer is a library wrapped in go.opentelemetry.io/otel.
Package tracer is a library wrapped in go.opentelemetry.io/otel.
Package utils is a library of commonly used utility functions.
Package utils is a library of commonly used utility functions.

Jump to

Keyboard shortcuts

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