pkg/

directory
v0.0.0-...-9204231 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 apierror is a shared kernel package providing structured API error types with machine-readable codes and HTTP status mapping.
Package apierror is a shared kernel package providing structured API error types with machine-readable codes and HTTP status mapping.
Package authutil provides argon2id password hashing and ECDSA JWT token generation/validation.
Package authutil provides argon2id password hashing and ECDSA JWT token generation/validation.
Package backoff provides retry backoff utilities including jitter to prevent thundering herd effects when multiple clients retry simultaneously.
Package backoff provides retry backoff utilities including jitter to prevent thundering herd effects when multiple clients retry simultaneously.
Package circuitbreaker provides a shared circuit breaker configuration type and factory function.
Package circuitbreaker provides a shared circuit breaker configuration type and factory function.
Package clock is a shared kernel package providing a deterministic time abstraction for domain code.
Package clock is a shared kernel package providing a deterministic time abstraction for domain code.
Package domainevent is a shared kernel package providing the canonical Event type, Publisher interface, and EventType constants used across all bounded contexts (identity, billing, multisub, payment, reseller).
Package domainevent is a shared kernel package providing the canonical Event type, Publisher interface, and EventType constants used across all bounded contexts (identity, billing, multisub, payment, reseller).
domaineventtest
Package domaineventtest provides shared mock implementations of domainevent interfaces for use in unit tests across all bounded contexts.
Package domaineventtest provides shared mock implementations of domainevent interfaces for use in unit tests across all bounded contexts.
Package health defines the component health checking contract used by the readiness endpoint to report per-component status with degraded support.
Package health defines the component health checking contract used by the readiness endpoint to report per-component status with degraded support.
Package hookdispatch defines the port interface for dispatching WASM plugin hooks.
Package hookdispatch defines the port interface for dispatching WASM plugin hooks.
hookdispatchtest
Package hookdispatchtest provides mock implementations of hookdispatch.Dispatcher for use in domain-level unit tests.
Package hookdispatchtest provides mock implementations of hookdispatch.Dispatcher for use in domain-level unit tests.
Package hookfn provides generic helpers for creating typed hook dispatch functions from the untyped hookdispatch.Dispatcher.
Package hookfn provides generic helpers for creating typed hook dispatch functions from the untyped hookdispatch.Dispatcher.
Package httpconst is a shared kernel package providing HTTP header names and MIME type constants used across the RemnaCore codebase.
Package httpconst is a shared kernel package providing HTTP header names and MIME type constants used across the RemnaCore codebase.
Package money provides the Money value object for representing monetary amounts.
Package money provides the Money value object for representing monetary amounts.
Package naming provides Remnawave username generation conventions.
Package naming provides Remnawave username generation conventions.
Package pgutil provides reusable pgx/pgtype conversion helpers shared across all PostgreSQL repository implementations.
Package pgutil provides reusable pgx/pgtype conversion helpers shared across all PostgreSQL repository implementations.
Package sdk provides types and utilities for building RemnaCore plugins.
Package sdk provides types and utilities for building RemnaCore plugins.
Package secret provides String, a string wrapper that masks its value in logs, errors, and serialization to prevent accidental leakage of sensitive data (tokens, keys).
Package secret provides String, a string wrapper that masks its value in logs, errors, and serialization to prevent accidental leakage of sensitive data (tokens, keys).
Package secretbox provides authenticated symmetric encryption (AES-256-GCM) for secrets stored at rest (e.g.
Package secretbox provides authenticated symmetric encryption (AES-256-GCM) for secrets stored at rest (e.g.
Package telegramauth validates Telegram Mini App (WebApp) initData per https://core.telegram.org/bots/webapps#validating-data-received-via-the-mini-app
Package telegramauth validates Telegram Mini App (WebApp) initData per https://core.telegram.org/bots/webapps#validating-data-received-via-the-mini-app
telegramauthtest
Package telegramauthtest provides test helpers for building signed Telegram WebApp initData strings.
Package telegramauthtest provides test helpers for building signed Telegram WebApp initData strings.
Package tenantctx provides context-based tenant ID propagation for multi-tenant row-level security (RLS).
Package tenantctx provides context-based tenant ID propagation for multi-tenant row-level security (RLS).
Package tokenhash derives a deterministic hash for bearer tokens (refresh tokens, password-reset / email-verification / invitation tokens) so they are stored and looked up by hash instead of plaintext.
Package tokenhash derives a deterministic hash for bearer tokens (refresh tokens, password-reset / email-verification / invitation tokens) so they are stored and looked up by hash instead of plaintext.
Package tracing is a shared kernel package providing a thin wrapper around the OpenTelemetry tracing API so that domain and infrastructure packages can create spans without coupling to the OTel SDK initialisation code in internal/observability.
Package tracing is a shared kernel package providing a thin wrapper around the OpenTelemetry tracing API so that domain and infrastructure packages can create spans without coupling to the OTel SDK initialisation code in internal/observability.
Package txmanager is a shared kernel package defining an interface for running functions within database transactions.
Package txmanager is a shared kernel package defining an interface for running functions within database transactions.
txmanagertest
Package txmanagertest provides shared test doubles for txmanager interfaces.
Package txmanagertest provides shared test doubles for txmanager interfaces.
Package typedid provides typed entity IDs for compile-time safety against accidental ID swaps between different entity types.
Package typedid provides typed entity IDs for compile-time safety against accidental ID swaps between different entity types.
Package wallet provides shared types for cross-plugin balance integration.
Package wallet provides shared types for cross-plugin balance integration.

Jump to

Keyboard shortcuts

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