Directories
¶
| Path | Synopsis |
|---|---|
|
Package auth provides enterprise-grade authentication tools.
|
Package auth provides enterprise-grade authentication tools. |
|
Package cache provides JSON-aware helper functions built on top of the Cache interface.
|
Package cache provides JSON-aware helper functions built on top of the Cache interface. |
|
Package config provides a simple, structured way to load application configuration from both files (like .yaml or .env) and environment variables.
|
Package config provides a simple, structured way to load application configuration from both files (like .yaml or .env) and environment variables. |
|
Package cron provides a distributed job scheduler.
|
Package cron provides a distributed job scheduler. |
|
db
|
|
|
mongodb
Package mongodb provides a robust, production-ready MongoDB client wrapper.
|
Package mongodb provides a robust, production-ready MongoDB client wrapper. |
|
orm
Package orm provides a robust, production-ready PostgreSQL client using GORM.
|
Package orm provides a robust, production-ready PostgreSQL client using GORM. |
|
examples
|
|
|
auth
command
|
|
|
cache
command
|
|
|
config
command
|
|
|
cron
command
|
|
|
db
command
|
|
|
db_mongodb
command
|
|
|
foundation
command
|
|
|
graphql_web
command
|
|
|
grpc_simple
command
|
|
|
health
command
|
|
|
httpclient
command
|
|
|
kafka
command
Package main demonstrates basic usage of the github.com/thanhbvha/go-common/kafka package.
|
Package main demonstrates basic usage of the github.com/thanhbvha/go-common/kafka package. |
|
logger
command
|
|
|
nats
command
|
|
|
queue
command
|
|
|
queue_kafka
command
Package main demonstrates basic usage of the github.com/thanhbvha/go-common/queue_kafka package.
|
Package main demonstrates basic usage of the github.com/thanhbvha/go-common/queue_kafka package. |
|
queue_nats
command
|
|
|
ratelimit
command
|
|
|
redis
command
|
|
|
telemetry
command
|
|
|
utils
command
|
|
|
web
command
|
|
|
websocket
command
|
|
|
websocket/client
command
Package main implements a premium interactive command-line client to test and verify the high-performance clustered WebSocket service.
|
Package main implements a premium interactive command-line client to test and verify the high-performance clustered WebSocket service. |
|
xerrors
command
|
|
|
Package foundation provides the core application lifecycle manager for microservices.
|
Package foundation provides the core application lifecycle manager for microservices. |
|
Package graphql provides a framework-agnostic wrapper around gqlgen.
|
Package graphql provides a framework-agnostic wrapper around gqlgen. |
|
Package health provides HTTP health check endpoints for microservices.
|
Package health provides HTTP health check endpoints for microservices. |
|
Package httpclient provides a resilient HTTP client wrapper around go-resty.
|
Package httpclient provides a resilient HTTP client wrapper around go-resty. |
|
Package kafka provides a production-ready Apache Kafka client wrapper built on top of github.com/twmb/franz-go.
|
Package kafka provides a production-ready Apache Kafka client wrapper built on top of github.com/twmb/franz-go. |
|
Package logger provides a structured, asynchronous logger built on top of the standard library's log/slog.
|
Package logger provides a structured, asynchronous logger built on top of the standard library's log/slog. |
|
Package nats provides a production-ready NATS client wrapper built on top of github.com/nats-io/nats.go.
|
Package nats provides a production-ready NATS client wrapper built on top of github.com/nats-io/nats.go. |
|
Package queue implements a durable, Redis-Streams-backed job queue with support for delayed execution, per-type worker pools, automatic retry with exponential back-off, and a dead-letter queue (DLQ) for exhausted jobs.
|
Package queue implements a durable, Redis-Streams-backed job queue with support for delayed execution, per-type worker pools, automatic retry with exponential back-off, and a dead-letter queue (DLQ) for exhausted jobs. |
|
Package queue_kafka implements a durable, Apache Kafka-backed job queue with support for delayed execution, per-type worker pools, automatic retry via dedicated retry topics, and a dead-letter queue (DLQ) for exhausted jobs.
|
Package queue_kafka implements a durable, Apache Kafka-backed job queue with support for delayed execution, per-type worker pools, automatic retry via dedicated retry topics, and a dead-letter queue (DLQ) for exhausted jobs. |
|
Package queue_nats implements a highly reliable, NATS JetStream-backed job queue.
|
Package queue_nats implements a highly reliable, NATS JetStream-backed job queue. |
|
Package ratelimit provides a distributed rate limiter backed by Redis.
|
Package ratelimit provides a distributed rate limiter backed by Redis. |
|
Package redis provides a production-ready Redis client wrapper built on top of github.com/redis/go-redis/v9.
|
Package redis provides a production-ready Redis client wrapper built on top of github.com/redis/go-redis/v9. |
|
Package telemetry provides production-ready OpenTelemetry integration.
|
Package telemetry provides production-ready OpenTelemetry integration. |
|
utils
|
|
|
crypt
Package crypt provides modern, secure cryptographic utilities.
|
Package crypt provides modern, secure cryptographic utilities. |
|
ctxkey
Package ctxkey provides a strongly-typed mechanism for managing context keys.
|
Package ctxkey provides a strongly-typed mechanism for managing context keys. |
|
graceful
Package graceful provides utilities for graceful shutdown of services.
|
Package graceful provides utilities for graceful shutdown of services. |
|
maps
Package maps provides generic utility functions for Go maps.
|
Package maps provides generic utility functions for Go maps. |
|
slice
Package slice provides generic utility functions for Go slices.
|
Package slice provides generic utility functions for Go slices. |
|
str
Package str provides utility functions for common string manipulation tasks.
|
Package str provides utility functions for common string manipulation tasks. |
|
web
|
|
|
middleware/fiber
package fibermw provides standard HTTP middlewares for the Fiber web framework.
|
package fibermw provides standard HTTP middlewares for the Fiber web framework. |
|
response
Package response provides a standardized JSON response structure for API endpoints.
|
Package response provides a standardized JSON response structure for API endpoints. |
|
validator
Package validator provides struct validation using github.com/go-playground/validator.
|
Package validator provides struct validation using github.com/go-playground/validator. |
|
websocket
|
|
|
adapter/echo
Package echo provides an adapter to bridge the Echo web framework and our generic WebSocket core.
|
Package echo provides an adapter to bridge the Echo web framework and our generic WebSocket core. |
|
adapter/fiber
Package fiber provides an adapter to bridge the Fiber web framework and our generic WebSocket core.
|
Package fiber provides an adapter to bridge the Fiber web framework and our generic WebSocket core. |
|
adapter/gin
Package gin provides an adapter to bridge the Gin web framework and our generic WebSocket core.
|
Package gin provides an adapter to bridge the Gin web framework and our generic WebSocket core. |
|
core
package core contains the core WebSocket hub, connection lifecycle, and manager logic.
|
package core contains the core WebSocket hub, connection lifecycle, and manager logic. |
|
limiter
Package limiter provides token-bucket rate limiting tailored for WebSocket connections.
|
Package limiter provides token-bucket rate limiting tailored for WebSocket connections. |
|
pool
Package pool provides memory and concurrency pools to optimize resource usage under high traffic.
|
Package pool provides memory and concurrency pools to optimize resource usage under high traffic. |
|
pubsub
Package pubsub provides a distributed publish-subscribe abstraction for the WebSocket server.
|
Package pubsub provides a distributed publish-subscribe abstraction for the WebSocket server. |
|
pubsub/redis
package redispubsub handles multi-node coordination using Redis pub/sub to route messages in a clustered environment.
|
package redispubsub handles multi-node coordination using Redis pub/sub to route messages in a clustered environment. |
|
Package xerrors provides a structured error handling mechanism for HTTP applications.
|
Package xerrors provides a structured error handling mechanism for HTTP applications. |
Click to show internal directories.
Click to hide internal directories.