pkg/

directory
v1.153.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT

Directories

Path Synopsis
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.
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.
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.
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.
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.
Package countrycode provides access to ISO-3166 country metadata.
Package countrycode provides access to ISO-3166 country metadata.
Package countryphone resolves international phone number prefixes into country and regional metadata.
Package countryphone resolves international phone number prefixes into country and regional metadata.
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.
Package devlake provides a Go client for the DevLake Webhook API.
Package devlake provides a Go client for the DevLake Webhook API.
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.
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.
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.
Package enumbitmap provides helpers to encode and decode enumeration values as bitmaps.
Package enumbitmap provides helpers to encode and decode enumeration values as bitmaps.
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.
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.
Package errutil provides helpers for error handling in Go applications.
Package errutil provides helpers for error handling in Go applications.
Package filter provides declarative, rule-based filtering for in-memory slices.
Package filter provides declarative, rule-based filtering for in-memory slices.
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.
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.
Package httpretrier provides configurable retry execution for outbound HTTP requests.
Package httpretrier provides configurable retry execution for outbound HTTP requests.
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.
Package httpserver provides a configurable HTTP server bootstrap for Go services.
Package httpserver provides a configurable HTTP server bootstrap for Go services.
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.
jsendx
Package jsendx implements an extended JSend response envelope for HTTP APIs.
Package jsendx implements an extended JSend response envelope for HTTP APIs.
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/).
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.
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.
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.
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.
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.
Package maputil provides generic functional-style helpers for Go maps.
Package maputil provides generic functional-style helpers for Go maps.
Package metrics defines a backend-agnostic instrumentation contract for Go services.
Package metrics defines a backend-agnostic instrumentation contract for Go services.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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).
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.
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.
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.
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.
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.
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:
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
Package timeutil provides two JSON-friendly time types.
Package timeutil provides two JSON-friendly time types.
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.
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.
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.
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.
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.

Jump to

Keyboard shortcuts

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