Directories ¶
Path | Synopsis |
---|---|
Package app 负责优雅地启动和停止服务,使用 golang.org/x/sync/errgroup 确保多个服务同时启动。
|
Package app 负责优雅地启动和停止服务,使用 golang.org/x/sync/errgroup 确保多个服务同时启动。 |
Package cache is redis cache libraries.
|
Package cache is redis cache libraries. |
Package conf 是解析 YAML、JSON、TOML 配置文件到 Go 结构体的包。
|
Package conf 是解析 YAML、JSON、TOML 配置文件到 Go 结构体的包。 |
Package consulcli 是连接到 Consul 服务的客户端包。
|
Package consulcli 是连接到 Consul 服务的客户端包。 |
container
|
|
group
Package group provides a sample lazy load container.
|
Package group provides a sample lazy load container. |
Package dlock 提供分布式锁原语,支持 Redis 和 etcd。
|
Package dlock 提供分布式锁原语,支持 Redis 和 etcd。 |
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. |
Package encoding Provides encoding and decoding of json, protobuf and gob.
|
Package encoding Provides encoding and decoding of json, protobuf and gob. |
json
Package json is a JSON encoding and decoding.
|
Package json is a JSON encoding and decoding. |
proto
Package proto is a protobuf encoding and decoding.
|
Package proto is a protobuf encoding and decoding. |
Package errcode 用于定义 HTTP 和 gRPC 错误码,包括系统级别的错误码和业务级别的错误码
|
Package errcode 用于定义 HTTP 和 gRPC 错误码,包括系统级别的错误码和业务级别的错误码 |
Package etcdcli 用于连接到 etcd 服务
|
Package etcdcli 用于连接到 etcd 服务 |
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 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. |
Package gocron is scheduled task library.
|
Package gocron is scheduled task 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 gohttp is http request client, which only supports returning json format.
|
Package gohttp is http request client, which only supports returning json format. |
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. |
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. |
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 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. |
Package kafka is a kafka client package.
|
Package kafka is a kafka client package. |
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 mgo is a library wrapped on go.mongodb.org/mongo-driver/mongo, with added features paging queries, etc.
|
Package mgo is a library wrapped on go.mongodb.org/mongo-driver/mongo, with added features 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. |
Package mysql is a library wrapped on top of gorm.io/gorm, with added features such as link tracing, paging queries, etc.
|
Package mysql 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 for mysql query, support for complex conditional paging queries.
|
Package query is a library for mysql query, support for complex conditional paging queries. |
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. |
Package rabbitmq is a go wrapper for github.com/rabbitmq/amqp091-go
|
Package rabbitmq is a go wrapper for github.com/rabbitmq/amqp091-go |
Package replacer 是一个用于替换文件内容的库,支持本地目录和嵌入目录文件的替换。
|
Package replacer 是一个用于替换文件内容的库,支持本地目录和嵌入目录文件的替换。 |
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 是一个服务注册库,支持 etcd、consul 和 nacos。
|
Package registry 是一个服务注册库,支持 etcd、consul 和 nacos。 |
registry/etcd
Package etcd is registered as a service using etcd.
|
Package etcd is registered as a service using etcd. |
Package sgorm is a library encapsulated on gorm.io/gorm
|
Package sgorm is a library encapsulated on gorm.io/gorm |
dbclose
Package dbclose provides a function to close gorm db.
|
Package dbclose provides a function to close gorm db. |
glog
Package glog provides a gorm logger implementation based on zap.
|
Package glog provides a gorm logger implementation based on zap. |
mysql
Package mysql provides a gorm driver for mysql.
|
Package mysql provides a gorm driver for mysql. |
postgresql
Package postgresql provides a gorm driver for postgresql.
|
Package postgresql provides a gorm driver for postgresql. |
query
Package query 是一个自定义条件查询库,支持复杂的分页查询。
|
Package query 是一个自定义条件查询库,支持复杂的分页查询。 |
sqlite
Package sqlite provides a gorm driver for sqlite.
|
Package sqlite provides a gorm driver for sqlite. |
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 sql2code 提供根据 SQL 生成不同用途代码的功能, 支持生成 JSON、GORM 模型、更新参数、请求参数代码, SQL 可以从参数、文件、数据库三种方式获取,优先级从高到低。
|
Package sql2code 提供根据 SQL 生成不同用途代码的功能, 支持生成 JSON、GORM 模型、更新参数、请求参数代码, SQL 可以从参数、文件、数据库三种方式获取,优先级从高到低。 |
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. |
sqlparser
|
|
ast
Package ast is the abstract syntax tree parsed from a SQL statement by parser.
|
Package ast is the abstract syntax tree parsed from a SQL statement by parser. |
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. |
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. |
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. |
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. |
Package ws provides a WebSocket server implementation.
|
Package ws provides a WebSocket server implementation. |
Click to show internal directories.
Click to hide internal directories.