Directories
¶
| Path | Synopsis |
|---|---|
|
pkg
|
|
|
awsopt
Package awsopt configures the aws-sdk-go-v2 library consistently across multiple AWS service clients.
|
Package awsopt configures the aws-sdk-go-v2 library consistently across multiple AWS service clients. |
|
awssecretcache
Package awssecretcache provides a local, thread-safe, fixed-size cache for AWS Secrets Manager lookups, with single-flight deduplication.
|
Package awssecretcache provides a local, thread-safe, fixed-size cache for AWS Secrets Manager lookups, with single-flight deduplication. |
|
backoff
Package backoff computes successive retry delays with exponential growth, a bounded maximum, and random jitter.
|
Package backoff computes successive retry delays with exponential growth, a bounded maximum, and random jitter. |
|
bootstrap
Package bootstrap wires together the core infrastructure of a Go service: context lifecycle, structured logging, metrics collection, OS signal handling, and graceful shutdown, in a single function call.
|
Package bootstrap wires together the core infrastructure of a Go service: context lifecycle, structured logging, metrics collection, OS signal handling, and graceful shutdown, in a single function call. |
|
config
Package config provides configuration bootstrap for Go services built on top of Viper.
|
Package config provides configuration bootstrap for Go services built on top of Viper. |
|
countrycode
Package countrycode provides access to ISO-3166 country metadata.
|
Package countrycode provides access to ISO-3166 country metadata. |
|
countryphone
Package countryphone resolves international phone number prefixes into country and regional metadata.
|
Package countryphone resolves international phone number prefixes into country and regional metadata. |
|
decint
Package decint provides utility functions to parse and represent decimal values as fixed-point integers with a defined precision.
|
Package decint provides utility functions to parse and represent decimal values as fixed-point integers with a defined precision. |
|
devlake
Package devlake provides a Go client for the DevLake Webhook API.
|
Package devlake provides a Go client for the DevLake Webhook API. |
|
dnscache
Package dnscache provides a local DNS cache that is safe for concurrent use, bounded in size, and uses single-flight request collapsing to avoid duplicate lookups.
|
Package dnscache provides a local DNS cache that is safe for concurrent use, bounded in size, and uses single-flight request collapsing to avoid duplicate lookups. |
|
encode
Package encode provides helpers for serialization and deserialization across system boundaries such as databases, queues, caches, and RPC payloads.
|
Package encode provides helpers for serialization and deserialization across system boundaries such as databases, queues, caches, and RPC payloads. |
|
encrypt
Package encrypt provides helpers for encrypting and decrypting data safely for transport and storage.
|
Package encrypt provides helpers for encrypting and decrypting data safely for transport and storage. |
|
enumbitmap
Package enumbitmap provides helpers to encode and decode enumeration values as bitmaps.
|
Package enumbitmap provides helpers to encode and decode enumeration values as bitmaps. |
|
enumcache
Package enumcache provides thread-safe storage and lookup for enumeration name and ID mappings.
|
Package enumcache provides thread-safe storage and lookup for enumeration name and ID mappings. |
|
enumdb
Package enumdb loads enumeration sets from relational database tables into thread-safe enum caches.
|
Package enumdb loads enumeration sets from relational database tables into thread-safe enum caches. |
|
errutil
Package errutil provides helpers for error handling in Go applications.
|
Package errutil provides helpers for error handling in Go applications. |
|
filter
Package filter provides declarative, rule-based filtering for in-memory slices.
|
Package filter provides declarative, rule-based filtering for in-memory slices. |
|
healthcheck
Package healthcheck provides a framework for defining, executing, and aggregating service health probes.
|
Package healthcheck provides a framework for defining, executing, and aggregating service health probes. |
|
httpclient
Package httpclient provides a configurable outbound HTTP client with trace propagation and structured request/response logging.
|
Package httpclient provides a configurable outbound HTTP client with trace propagation and structured request/response logging. |
|
httpretrier
Package httpretrier provides configurable retry execution for outbound HTTP requests.
|
Package httpretrier provides configurable retry execution for outbound HTTP requests. |
|
httpreverseproxy
Package httpreverseproxy provides a reverse-proxy client built on top of net/http/httputil.ReverseProxy.
|
Package httpreverseproxy provides a reverse-proxy client built on top of net/http/httputil.ReverseProxy. |
|
httpserver
Package httpserver provides a configurable HTTP server bootstrap for Go services.
|
Package httpserver provides a configurable HTTP server bootstrap for Go services. |
|
httputil
Package httputil provides HTTP request/response primitives for Go services built on top of net/http.
|
Package httputil provides HTTP request/response primitives for Go services built on top of net/http. |
|
httputil/jsendx
Package jsendx implements an extended JSend response envelope for HTTP APIs.
|
Package jsendx implements an extended JSend response envelope for HTTP APIs. |
|
ipify
Package ipify provides a small client to resolve the current instance public IP address using the ipify service (https://www.ipify.org/).
|
Package ipify provides a small client to resolve the current instance public IP address using the ipify service (https://www.ipify.org/). |
|
jirasrv
Package jirasrv provides a typed HTTP client foundation for Jira Server REST integrations.
|
Package jirasrv provides a typed HTTP client foundation for Jira Server REST integrations. |
|
jwt
Package jwt provides an HTTP-oriented JWT authentication helper for username/password login flows: validate user credentials, issue short-lived signed JWTs, authorize protected endpoints from an Authorization header, and optionally renew tokens near expiration.
|
Package jwt provides an HTTP-oriented JWT authentication helper for username/password login flows: validate user credentials, issue short-lived signed JWTs, authorize protected endpoints from an Authorization header, and optionally renew tokens near expiration. |
|
kafka
Package kafka provides a pure-Go API for producing and consuming Apache Kafka messages.
|
Package kafka provides a pure-Go API for producing and consuming Apache Kafka messages. |
|
logsrv
Package logsrv provides a zerolog backend exposed through the standard log/slog API.
|
Package logsrv provides a zerolog backend exposed through the standard log/slog API. |
|
logutil
Package logutil provides configuration-driven logging utilities built around Go's standard log/slog package.
|
Package logutil provides configuration-driven logging utilities built around Go's standard log/slog package. |
|
maputil
Package maputil provides generic functional-style helpers for Go maps.
|
Package maputil provides generic functional-style helpers for Go maps. |
|
metrics
Package metrics defines a backend-agnostic instrumentation contract for Go services.
|
Package metrics defines a backend-agnostic instrumentation contract for Go services. |
|
metrics/opentel
Package opentel implements github.com/tecnickcom/nurago/pkg/metrics.Client using OpenTelemetry for both metrics and tracing.
|
Package opentel implements github.com/tecnickcom/nurago/pkg/metrics.Client using OpenTelemetry for both metrics and tracing. |
|
metrics/prometheus
Package prometheus implements github.com/tecnickcom/nurago/pkg/metrics.Client using the Prometheus client ecosystem.
|
Package prometheus implements github.com/tecnickcom/nurago/pkg/metrics.Client using the Prometheus client ecosystem. |
|
metrics/statsd
Package statsd implements github.com/tecnickcom/nurago/pkg/metrics.Client using the StatsD protocol.
|
Package statsd implements github.com/tecnickcom/nurago/pkg/metrics.Client using the StatsD protocol. |
|
mysqllock
Package mysqllock provides process-distributed mutual exclusion using MySQL's named lock primitives GET_LOCK and RELEASE_LOCK.
|
Package mysqllock provides process-distributed mutual exclusion using MySQL's named lock primitives GET_LOCK and RELEASE_LOCK. |
|
numtrie
Package numtrie provides a generic, digit-indexed [trie] (prefix tree) for associating values of any type with numerical keys, with built-in support for partial/prefix matching and alphabetical (vanity) phone-number keys.
|
Package numtrie provides a generic, digit-indexed [trie] (prefix tree) for associating values of any type with numerical keys, with built-in support for partial/prefix matching and alphabetical (vanity) phone-number keys. |
|
paging
Package paging computes pagination metadata (current page, total pages, previous/next page numbers, and SQL OFFSET/LIMIT values) from three inputs: current page number, page size, and total item count.
|
Package paging computes pagination metadata (current page, total pages, previous/next page numbers, and SQL OFFSET/LIMIT values) from three inputs: current page number, page size, and total item count. |
|
passwordhash
Package passwordhash provides OWASP-compliant password hashing and verification using the Argon2id algorithm (RFC 9106), with an optional AES-GCM encryption layer (peppered hashing) for defense in depth.
|
Package passwordhash provides OWASP-compliant password hashing and verification using the Argon2id algorithm (RFC 9106), with an optional AES-GCM encryption layer (peppered hashing) for defense in depth. |
|
passwordpwned
Package passwordpwned checks whether a password has appeared in a known data breach, using the Have I Been Pwned (HIBP) Pwned Passwords API v3 (https://haveibeenpwned.com/API/v3#PwnedPasswords).
|
Package passwordpwned checks whether a password has appeared in a known data breach, using the Have I Been Pwned (HIBP) Pwned Passwords API v3 (https://haveibeenpwned.com/API/v3#PwnedPasswords). |
|
periodic
Package periodic schedules a task function to run repeatedly at a fixed interval, with optional random jitter and a per-invocation context timeout.
|
Package periodic schedules a task function to run repeatedly at a fixed interval, with optional random jitter and a per-invocation context timeout. |
|
phonekeypad
Package phonekeypad converts alphabetic strings and phone number literals to their numeric equivalents on a standard 12-key telephony keypad (ITU E.161 / ITU T.9).
|
Package phonekeypad converts alphabetic strings and phone number literals to their numeric equivalents on a standard 12-key telephony keypad (ITU E.161 / ITU T.9). |
|
profiling
Package profiling bridges Go's built-in net/http/pprof profiling tool and the httprouter request router, allowing all pprof endpoints to be served through a single wildcard route without manual per-handler registration.
|
Package profiling bridges Go's built-in net/http/pprof profiling tool and the httprouter request router, allowing all pprof endpoints to be served through a single wildcard route without manual per-handler registration. |
|
random
Package random provides utility functions for generating random bytes, numeric identifiers, UID/UUID values, hexadecimal/base36 IDs, and configurable random strings.
|
Package random provides utility functions for generating random bytes, numeric identifiers, UID/UUID values, hexadecimal/base36 IDs, and configurable random strings. |
|
redact
Package redact provides pattern-based redaction utilities for obscuring sensitive data before logging or debugging output is emitted.
|
Package redact provides pattern-based redaction utilities for obscuring sensitive data before logging or debugging output is emitted. |
|
redis
Package redis provides helpers built on go-redis for common application workflows: key/value storage, Pub/Sub messaging, typed payload encoding, and connection health checks.
|
Package redis provides helpers built on go-redis for common application workflows: key/value storage, Pub/Sub messaging, typed payload encoding, and connection health checks. |
|
retrier
Package retrier provides a configurable retry engine for executing a task function with backoff, jitter, and per-attempt timeouts.
|
Package retrier provides a configurable retry engine for executing a task function with backoff, jitter, and per-attempt timeouts. |
|
s3
Package s3 provides helpers built on the AWS SDK v2 S3 client for common bucket object operations:
|
Package s3 provides helpers built on the AWS SDK v2 S3 client for common bucket object operations: |
|
sfcache
Package sfcache provides a local, thread-safe, fixed-size cache for expensive lookups with single-flight deduplication.
|
Package sfcache provides a local, thread-safe, fixed-size cache for expensive lookups with single-flight deduplication. |
|
slack
Package slack provides a client for sending messages to Slack via Incoming Webhooks.
|
Package slack provides a client for sending messages to Slack via Incoming Webhooks. |
|
sleuth
Package sleuth provides a Go client for the Sleuth.io API, covering common write-side integrations for delivery metrics and operational signal ingestion.
|
Package sleuth provides a Go client for the Sleuth.io API, covering common write-side integrations for delivery metrics and operational signal ingestion. |
|
sliceutil
Package sliceutil provides generic, allocation-conscious helpers for common slice operations and numeric dataset summarization.
|
Package sliceutil provides generic, allocation-conscious helpers for common slice operations and numeric dataset summarization. |
|
sqlconn
Package sqlconn manages a database/sql connection lifecycle in long-running Go services: applying pool limits, verifying connectivity, exposing health checks, and closing the connection on shutdown signals.
|
Package sqlconn manages a database/sql connection lifecycle in long-running Go services: applying pool limits, verifying connectivity, exposing health checks, and closing the connection on shutdown signals. |
|
sqltransaction
Package sqltransaction executes business logic inside a transaction with begin/commit/rollback control flow and consistent error handling.
|
Package sqltransaction executes business logic inside a transaction with begin/commit/rollback control flow and consistent error handling. |
|
sqlutil
Package sqlutil quotes identifiers and string literals when generating SQL query fragments dynamically.
|
Package sqlutil quotes identifiers and string literals when generating SQL query fragments dynamically. |
|
sqlxtransaction
Package sqlxtransaction handles begin/commit/rollback control flow around business logic executed inside a sqlx transaction.
|
Package sqlxtransaction handles begin/commit/rollback control flow around business logic executed inside a sqlx transaction. |
|
sqs
Package sqs wraps github.com/aws/aws-sdk-go-v2/service/sqs with an API that covers the common queue workflow: send, receive, decode, acknowledge (delete), and health-check.
|
Package sqs wraps github.com/aws/aws-sdk-go-v2/service/sqs with an API that covers the common queue workflow: send, receive, decode, acknowledge (delete), and health-check. |
|
stringkey
Package stringkey derives a stable, compact, non-cryptographic key from multiple text fields for lookup, deduplication, and idempotency-style identifiers.
|
Package stringkey derives a stable, compact, non-cryptographic key from multiple text fields for lookup, deduplication, and idempotency-style identifiers. |
|
stringmetric
Package stringmetric provides string distance functions for approximate text matching, comparison, and fuzzy search.
|
Package stringmetric provides string distance functions for approximate text matching, comparison, and fuzzy search. |
|
strsplit
Package strsplit splits strings into bounded-size chunks without breaking Unicode characters, keeping human-readable boundaries (spaces, punctuation, and newlines).
|
Package strsplit splits strings into bounded-size chunks without breaking Unicode characters, keeping human-readable boundaries (spaces, punctuation, and newlines). |
|
testutil
Package testutil provides test-only helpers for forcing I/O failures on demand, capturing process output, bootstrapping HTTP handlers, and normalizing time-variant values in assertions.
|
Package testutil provides test-only helpers for forcing I/O failures on demand, capturing process output, bootstrapping HTTP handlers, and normalizing time-variant values in assertions. |
|
threadsafe
Package threadsafe defines lock interfaces for building reusable, goroutine-safe data structures and helpers without hard-coding a concrete lock type.
|
Package threadsafe defines lock interfaces for building reusable, goroutine-safe data structures and helpers without hard-coding a concrete lock type. |
|
threadsafe/tsmap
Package tsmap provides lock-aware generic helpers for operating on Go maps shared across multiple goroutines, keeping synchronization explicit at every call site.
|
Package tsmap provides lock-aware generic helpers for operating on Go maps shared across multiple goroutines, keeping synchronization explicit at every call site. |
|
threadsafe/tsslice
Package tsslice provides lock-aware generic helpers for operating on Go slices shared across multiple goroutines, keeping synchronization explicit around every access.
|
Package tsslice provides lock-aware generic helpers for operating on Go slices shared across multiple goroutines, keeping synchronization explicit around every access. |
|
timeutil
Package timeutil provides two JSON-friendly time types.
|
Package timeutil provides two JSON-friendly time types. |
|
traceid
Package traceid captures a request-scoped trace ID at the service boundary: it reads the ID from an inbound HTTP header, propagates it through the context.Context for the lifetime of the request, and writes it back into outbound HTTP headers when calling downstream services, without coupling business logic to any particular tracing framework.
|
Package traceid captures a request-scoped trace ID at the service boundary: it reads the ID from an inbound HTTP header, propagates it through the context.Context for the lifetime of the request, and writes it back into outbound HTTP headers when calling downstream services, without coupling business logic to any particular tracing framework. |
|
typeutil
Package typeutil provides type-handling helpers for Go generics code: detecting nil through interfaces, obtaining zero values generically, dereferencing pointers safely, and converting booleans to integers without a branch.
|
Package typeutil provides type-handling helpers for Go generics code: detecting nil through interfaces, obtaining zero values generically, dereferencing pointers safely, and converting booleans to integers without a branch. |
|
uhex
Package uhex provides fixed-width, lowercase hexadecimal encoders for unsigned integers and fixed-size byte arrays.
|
Package uhex provides fixed-width, lowercase hexadecimal encoders for unsigned integers and fixed-size byte arrays. |
|
validator
Package validator wraps https://github.com/go-playground/validator and adds custom validation rules, a template-based error translation engine, and a functional-options API.
|
Package validator wraps https://github.com/go-playground/validator and adds custom validation rules, a template-based error translation engine, and a functional-options API. |
|
valkey
Package valkey wraps the valkey-go client (https://github.com/valkey-io/valkey-go) for Valkey (https://valkey.io), a Redis-compatible in-memory data store.
|
Package valkey wraps the valkey-go client (https://github.com/valkey-io/valkey-go) for Valkey (https://valkey.io), a Redis-compatible in-memory data store. |
Click to show internal directories.
Click to hide internal directories.