pkg/

directory
v1.157.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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 serializes and deserializes values crossing system boundaries such as databases, queues, caches, and RPC payloads.
Package encode serializes and deserializes values crossing system boundaries such as databases, queues, caches, and RPC payloads.
Package encrypt encrypts and decrypts data for transport and storage using AES-GCM authenticated encryption.
Package encrypt encrypts and decrypts data for transport and storage using AES-GCM authenticated encryption.
Package enumbitmap encodes a set of enumeration values as an integer bitmap and decodes it back.
Package enumbitmap encodes a set of enumeration values as an integer bitmap and decodes it back.
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 annotates errors with caller location, joins cleanup failures onto an existing error, and enumerates the errors inside an errors.Join value.
Package errutil annotates errors with caller location, joins cleanup failures onto an existing error, and enumerates the errors inside an errors.Join value.
Package filter provides declarative, rule-based filtering for in-memory slices.
Package filter provides declarative, rule-based filtering for in-memory slices.
Package grpcclient builds preconfigured gRPC client connections with trace ID propagation, structured logging, default deadlines, TLS by default, and native gRPC retry policies.
Package grpcclient builds preconfigured gRPC client connections with trace ID propagation, structured logging, default deadlines, TLS by default, and native gRPC retry policies.
Package grpcserver provides a configurable gRPC server bootstrap for Go services.
Package grpcserver provides a configurable gRPC server bootstrap for Go services.
Package grpcutil provides shared gRPC helpers for trace ID propagation through metadata, for mapping between gRPC status codes and HTTP status codes, for logging RPCs, and the instrumentation contract of gRPC servers and clients.
Package grpcutil provides shared gRPC helpers for trace ID propagation through metadata, for mapping between gRPC status codes and HTTP status codes, for logging RPCs, and the instrumentation contract of gRPC servers and clients.
Package healthcheck runs dependency probes concurrently and aggregates them into a single HTTP health endpoint.
Package healthcheck runs dependency probes concurrently and aggregates them into a single HTTP health endpoint.
healthrun
Package healthrun runs dependency probes concurrently and reports the outcome of each one, without any transport dependency.
Package healthrun runs dependency probes concurrently and reports the outcome of each one, without any transport dependency.
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 filters, maps, reduces, and inverts Go maps with generic functions.
Package maputil filters, maps, reduces, and inverts Go maps with generic functions.
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.
opentel/opentelgrpc
Package opentelgrpc adds OpenTelemetry tracing and metrics to gRPC servers and clients.
Package opentelgrpc adds OpenTelemetry tracing and metrics to gRPC servers and clients.
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.
prometheus/prometheusgrpc
Package prometheusgrpc collects Prometheus metrics for gRPC servers and clients.
Package prometheusgrpc collects Prometheus metrics for gRPC servers and clients.
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 removes secrets from log lines and HTTP dumps before they are emitted.
Package redact removes secrets from log lines and HTTP dumps before they are emitted.
Package redis wraps go-redis for key/value storage, Pub/Sub messaging, typed payload encoding, and connection health checks.
Package redis wraps go-redis for 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 uploads, downloads, lists, and deletes S3 bucket objects through the AWS SDK v2 S3 client.
Package s3 uploads, downloads, lists, and deletes S3 bucket objects through the AWS SDK v2 S3 client.
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 filters, maps, and reduces slices with generic functions, and summarizes numeric slices with descriptive statistics.
Package sliceutil filters, maps, and reduces slices with generic functions, and summarizes numeric slices with descriptive statistics.
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 srvlifecycle runs a network server in the background and shuts it down gracefully on a signal, on context cancelation, or on an explicit call.
Package srvlifecycle runs a network server in the background and shuts it down gracefully on a signal, on context cancelation, or on an explicit call.
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 reads and writes maps shared across goroutines, taking a caller-supplied lock at every call site.
Package tsmap reads and writes maps shared across goroutines, taking a caller-supplied lock at every call site.
tsslice
Package tsslice reads and writes slices shared across goroutines, taking a caller-supplied lock at every access.
Package tsslice reads and writes slices shared across goroutines, taking a caller-supplied lock at 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 detects nil through interfaces, obtains zero values generically, dereferences pointers safely, and converts booleans to integers without a branch.
Package typeutil detects nil through interfaces, obtains zero values generically, dereferences pointers safely, and converts 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