pkg/

directory
v0.12.14-0...-92f454a Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package array provides generic utility functions for slice generation and manipulation.
Package array provides generic utility functions for slice generation and manipulation.
Package assert provides simple assertion utilities for validating conditions and inputs throughout the application.
Package assert provides simple assertion utilities for validating conditions and inputs throughout the application.
Package auditlog defines types and constants for the audit logging system.
Package auditlog defines types and constants for the audit logging system.
Package auth normalizes API credentials into principals.
Package auth normalizes API credentials into principals.
jwt
Package jwt scaffolds short-lived bearer JWT authentication for API handlers.
Package jwt scaffolds short-lived bearer JWT authentication for API handlers.
portal_session
Package portalsession authenticates customer portal browser sessions.
Package portalsession authenticates customer portal browser sessions.
portalrbac
Package portalrbac is the single translation seam between the portal's simplified, public-facing permission model and the RBAC mechanism that actually enforces access.
Package portalrbac is the single translation seam between the portal's simplified, public-facing permission model and the RBAC mechanism that actually enforces access.
principal
Package principal defines the normalized authenticated subject shared by API authentication, request sessions, and audit logging.
Package principal defines the normalized authenticated subject shared by API authentication, request sessions, and audit logging.
workos
Package workos adapts WorkOS access tokens into Unkey auth principals.
Package workos adapts WorkOS access tokens into Unkey auth principals.
Package base58 implements Base58 encoding for binary data.
Package base58 implements Base58 encoding for binary data.
Package batch provides utilities for efficiently processing items in batches.
Package batch provides utilities for efficiently processing items in batches.
metrics
Package metrics provides Prometheus metric collectors for monitoring application performance.
Package metrics provides Prometheus metric collectors for monitoring application performance.
Package billingperiod parses and works with the "YYYY-MM" billing period keys used to key the monthly cron handlers (quota check, deploy billing push, ...).
Package billingperiod parses and works with the "YYYY-MM" billing period keys used to key the monthly cron handlers (quota check, deploy billing push, ...).
Package buffer provides a generic buffered channel implementation with configurable capacity and drop behavior.
Package buffer provides a generic buffered channel implementation with configurable capacity and drop behavior.
metrics
Package metrics provides Prometheus metric collectors for monitoring application performance.
Package metrics provides Prometheus metric collectors for monitoring application performance.
Package buildinfo exposes build metadata that is injected at link time via -ldflags -X. Values are populated by the release pipeline (goreleaser).
Package buildinfo exposes build metadata that is injected at link time via -ldflags -X. Values are populated by the release pipeline (goreleaser).
Package cache provides a generic, thread-safe caching system with support for time-based expiration, custom eviction policies, and observability.
Package cache provides a generic, thread-safe caching system with support for time-based expiration, custom eviction policies, and observability.
Package circuitbreaker implements the Circuit Breaker pattern to prevent cascading failures when dependent services are unavailable or experiencing high latency.
Package circuitbreaker implements the Circuit Breaker pattern to prevent cascading failures when dependent services are unavailable or experiencing high latency.
Package cli provides a command-line interface framework for building CLI applications.
Package cli provides a command-line interface framework for building CLI applications.
Package clickhouse provides a client for interacting with ClickHouse databases, optimized for high-volume event data storage and analytics.
Package clickhouse provides a client for interacting with ClickHouse databases, optimized for high-volume event data storage and analytics.
schema/gen command
Command gen writes columns_generated.go: the Row implementation (Table and InsertColumns methods) for every schema struct carrying an //unkey:table directive in its doc comment, so INSERT statements can name their target table and columns statically (see the Row interface).
Command gen writes columns_generated.go: the Row implementation (Table and InsertColumns methods) for every schema struct carrying an //unkey:table directive in its doc comment, so INSERT statements can name their target table and columns statically (see the Row interface).
Package clock provides a flexible interface for time-related operations, allowing for consistent time handling in both production and test environments.
Package clock provides a flexible interface for time-related operations, allowing for consistent time handling in both production and test environments.
Code generated by generate.go; DO NOT EDIT.
Code generated by generate.go; DO NOT EDIT.
Package conc provides bounded-concurrency helpers.
Package conc provides bounded-concurrency helpers.
Package config loads and validates TOML configuration into Go structs using struct tags for defaults and constraints.
Package config loads and validates TOML configuration into Go structs using struct tags for defaults and constraints.
Package counter provides abstractions and implementations for distributed counters.
Package counter provides abstractions and implementations for distributed counters.
Package ctxutil provides utilities for working with context.Context, specifically focused on storing and retrieving request-scoped values.
Package ctxutil provides utilities for working with context.Context, specifically focused on storing and retrieving request-scoped values.
db
Package db provides a database access layer for MySQL with support for read/write splitting, connection management, and type-safe SQL operations.
Package db provides a database access layer for MySQL with support for read/write splitting, connection management, and type-safe SQL operations.
plugins/bulk-insert command
Package main provides a sqlc plugin that generates bulk insert functions.
Package main provides a sqlc plugin that generates bulk insert functions.
dns
Package dns provides DNS lookup utilities using Cloudflare's 1.1.1.1 resolver.
Package dns provides DNS lookup utilities using Cloudflare's 1.1.1.1 resolver.
domainconnect
Package domainconnect implements the Domain Connect protocol (v2) for one-click DNS configuration of custom domains.
Package domainconnect implements the Domain Connect protocol (v2) for one-click DNS configuration of custom domains.
Package fault provides a clean, concise error handling system designed for building robust applications with rich error context and secure user messaging.
Package fault provides a clean, concise error handling system designed for building robust applications with rich error context and secure user messaging.
Package fuzz provides utilities for consuming fuzzer-generated byte slices and converting them into typed Go values.
Package fuzz provides utilities for consuming fuzzer-generated byte slices and converting them into typed Go values.
Package hash provides cryptographic hashing utilities for various security-related operations such as API key validation, data integrity checks, and signatures.
Package hash provides cryptographic hashing utilities for various security-related operations such as API key validation, data integrity checks, and signatures.
Package healthcheck provides push-based health monitoring for scheduled tasks.
Package healthcheck provides push-based health monitoring for scheduled tasks.
Package jwt provides JSON Web Token signing and verification with algorithm-pinned security to prevent algorithm confusion attacks.
Package jwt provides JSON Web Token signing and verification with algorithm-pinned security to prevent algorithm confusion attacks.
Package logger provides wide-event logging with tail sampling support.
Package logger provides wide-event logging with tail sampling support.
loggertest
Package loggertest provides shared testing utilities for the global logger package: a slog handler that records every emitted record and helpers for inspecting them.
Package loggertest provides shared testing utilities for the global logger package: a slog handler that records every emitted record and helpers for inspecting them.
Package match provides pattern matching utilities.
Package match provides pattern matching utilities.
Package mysql provides a minimal shared MySQL abstraction for backend services.
Package mysql provides a minimal shared MySQL abstraction for backend services.
metrics
Package metrics defines Prometheus metrics used by pkg/mysql wrappers.
Package metrics defines Prometheus metrics used by pkg/mysql wrappers.
plugins/bulk-insert command
Package main provides a sqlc plugin that generates bulk insert functions.
Package main provides a sqlc plugin that generates bulk insert functions.
sqlcomment
Package sqlcomment appends SQLCommenter-compatible metadata to SQL statements so PlanetScale Query Insights can attribute query load to services, operations, and deploys.
Package sqlcomment appends SQLCommenter-compatible metadata to SQL statements so PlanetScale Query Insights can attribute query load to services, operations, and deploys.
openapi
cmd command
Package prometheus provides HTTP server infrastructure for exposing Prometheus metrics.
Package prometheus provides HTTP server infrastructure for exposing Prometheus metrics.
lazy
Package lazy provides lazy-registering Prometheus metric wrappers.
Package lazy provides lazy-registering Prometheus metric wrappers.
metrics
Package metrics provides Prometheus metric collectors for monitoring Unkey services.
Package metrics provides Prometheus metric collectors for monitoring Unkey services.
Package prompt provides interactive terminal prompts for CLI applications.
Package prompt provides interactive terminal prompts for CLI applications.
example command
example/date command
example/select command
example/time command
example/wizard command
Package rbac implements a flexible Role-Based Access Control system for managing permissions and authorization checks.
Package rbac implements a flexible Role-Based Access Control system for managing permissions and authorization checks.
permissions
Package permissions defines typed actions for Unkey resource permissions.
Package permissions defines typed actions for Unkey resource permissions.
restate
admin
Package admin provides a client for the Restate admin API.
Package admin provides a client for the Restate admin API.
compensation
Package compensation provides a rollback mechanism for multi-step Restate workflows.
Package compensation provides a rollback mechanism for multi-step Restate workflows.
restateutil
Package restateutil holds small helpers shared by Restate handlers.
Package restateutil holds small helpers shared by Restate handlers.
Package retry provides functionality to retry operations with configurable attempts and backoff.
Package retry provides functionality to retry operations with configurable attempts and backoff.
rpc
testutil
containers
Package containers provides lightweight Docker container management for integration tests.
Package containers provides lightweight Docker container management for integration tests.
Package timing defines a small, strict header format for server-side timing data and provides helpers to record it through zen sessions.
Package timing defines a small, strict header format for server-side timing data and provides helpers to record it through zen sessions.
Package tls provides utilities for configuring TLS (Transport Layer Security) in HTTP servers.
Package tls provides utilities for configuring TLS (Transport Layer Security) in HTTP servers.
Package tui renders styled, aligned terminal output for CLI commands.
Package tui renders styled, aligned terminal output for CLI commands.
Package uid generates prefixed random identifiers for Unkey resources.
Package uid generates prefixed random identifiers for Unkey resources.
Package urn constructs and parses Unkey resource names.
Package urn constructs and parses Unkey resource names.
Package validation provides reusable input validation functions for the Unkey platform.
Package validation provides reusable input validation functions for the Unkey platform.
Package webhook receives provider webhooks over HTTP.
Package webhook receives provider webhooks over HTTP.
verifiers/github
Package github verifies GitHub App webhook signatures for pkg/webhook receivers.
Package github verifies GitHub App webhook signatures for pkg/webhook receivers.
verifiers/stripe
Package stripe verifies Stripe webhook signatures for pkg/webhook receivers.
Package stripe verifies Stripe webhook signatures for pkg/webhook receivers.
zen
Package zen provides a lightweight HTTP framework built on top of the standard library.
Package zen provides a lightweight HTTP framework built on top of the standard library.
metrics
Package metrics provides Prometheus metric collectors for monitoring application performance.
Package metrics provides Prometheus metric collectors for monitoring application performance.

Jump to

Keyboard shortcuts

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