app/

directory
v0.0.0-...-34eca9f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT

Directories

Path Synopsis
attachment
rpc command
rpc/internal/service
Package service implements the attachment domain: presigned uploads, object verification, download authorization and the transactional attachment.uploaded event.
Package service implements the attachment domain: presigned uploads, object verification, download authorization and the transactional attachment.uploaded event.
auth
rpc command
rpc/internal/svc/svctest
Package svctest builds ServiceContext values for tests without dialing Postgres or Redis.
Package svctest builds ServiceContext values for tests without dialing Postgres or Redis.
rpc/model/dao
Package dao is the GORM data-access layer for the aim_auth database.
Package dao is the GORM data-access layer for the aim_auth database.
rpc/model/orm
Package orm holds GORM model definitions for the aim_auth database.
Package orm holds GORM model definitions for the aim_auth database.
core
rpc command
rpc/internal/push
Package push owns core's outbound side: resolving which gateway nodes hold a user's connections and fanning a push out to them.
Package push owns core's outbound side: resolving which gateway nodes hold a user's connections and fanning a push out to them.
gateway
api command
api/internal/authctx
Package authctx carries the authenticated caller through an HTTP request.
Package authctx carries the authenticated caller through an HTTP request.
api/internal/botctx
Package botctx defines the Identity that the gateway BotAuth middleware injects into request context after a successful Bot OpenAPI token check.
Package botctx defines the Identity that the gateway BotAuth middleware injects into request context after a successful Bot OpenAPI token check.
api/internal/fanout
Package fanout owns best-effort pushes to the connections this gateway node holds; the broker/core path remains the cross-node path.
Package fanout owns best-effort pushes to the connections this gateway node holds; the broker/core path remains the cross-node path.
api/internal/handler/ws
Package wshandler implements the gateway WebSocket endpoint: upgrade, the per-connection read loop and frame dispatch.
Package wshandler implements the gateway WebSocket endpoint: upgrade, the per-connection read loop and frame dispatch.
api/internal/httperr
Package httperr owns the gateway's JSON response envelope and the mapping from errors to HTTP status codes.
Package httperr owns the gateway's JSON response envelope and the mapping from errors to HTTP status codes.
api/internal/membership
Package membership answers "is this caller a member of this conversation?" for gateway handlers.
Package membership answers "is this caller a member of this conversation?" for gateway handlers.
api/internal/mqs
Package mqs subscribes the gateway to the topics it delivers to clients.
Package mqs subscribes the gateway to the topics it delivers to clients.
api/internal/pbconv
Package pbconv maps RPC responses onto the gateway REST DTOs so every REST surface serialises the same fields the same way.
Package pbconv maps RPC responses onto the gateway REST DTOs so every REST surface serialises the same fields the same way.
api/internal/peerprofile
Package peerprofile fills the peer's display fields on friendship DTOs.
Package peerprofile fills the peer's display fields on friendship DTOs.
api/internal/svc/svctest
Package svctest builds ServiceContext values for tests without dialing external services.
Package svctest builds ServiceContext values for tests without dialing external services.
api/internal/ws
Package ws provides WebSocket frame codec helpers for the AIM gateway.
Package ws provides WebSocket frame codec helpers for the AIM gateway.
api/internal/ws/auth
Package wsauth provides JWT token extraction and validation for WebSocket connections.
Package wsauth provides JWT token extraction and validation for WebSocket connections.
logic
rpc command
rpc/internal/service/rbac
Package rbac decides conversation permissions with Casbin.
Package rbac decides conversation permissions with Casbin.
rpc/internal/servicefakes
Package servicefakes provides in-memory implementations of the logic service contracts, shared by the service and RPC-logic test suites so behaviour stays identical wherever a store is faked.
Package servicefakes provides in-memory implementations of the logic service contracts, shared by the service and RPC-logic test suites so behaviour stays identical wherever a store is faked.
rpc/internal/svc/svctest
Package svctest builds ServiceContext values for tests without dialing Postgres, Redis or RocketMQ.
Package svctest builds ServiceContext values for tests without dialing Postgres, Redis or RocketMQ.
rpc/model/dao
Package dao is the GORM data-access layer for the aim_logic database.
Package dao is the GORM data-access layer for the aim_logic database.
rpc/model/orm
Package orm holds GORM model definitions for the aim_logic database.
Package orm holds GORM model definitions for the aim_logic database.
shared
attachmentstore/dao
Package dao is the GORM data-access layer for the aim_attachment database.
Package dao is the GORM data-access layer for the aim_attachment database.
attachmentstore/orm
Package orm holds the GORM models of the aim_attachment database.
Package orm holds the GORM models of the aim_attachment database.
botperm
Package botperm defines action-based permission helpers for Bot OpenAPI.
Package botperm defines action-based permission helpers for Bot OpenAPI.
bottoken
Package bottoken provides generation and hashing primitives for AIM Bot OpenAPI tokens.
Package bottoken provides generation and hashing primitives for AIM Bot OpenAPI tokens.
botwebhook
Package botwebhook is the bot webhook wire contract: the delivery payload plus its HMAC-SHA256 signature.
Package botwebhook is the bot webhook wire contract: the delivery payload plus its HMAC-SHA256 signature.
events
Package events defines the broker payloads exchanged between AIM services.
Package events defines the broker payloads exchanged between AIM services.
gormdb
Package gormdb centralizes GORM connection setup for AIM services.
Package gormdb centralizes GORM connection setup for AIM services.
jwt
pgtypes
Package pgtypes holds the small PostgreSQL column types shared by GORM models.
Package pgtypes holds the small PostgreSQL column types shared by GORM models.
quota
Package quota provides a Redis-backed sliding-window rate limiter used by the AIM backends to throttle hot-path operations such as core.Transfer and any future per-(user, conversation) request quotas.
Package quota provides a Redis-backed sliding-window rate limiter used by the AIM backends to throttle hot-path operations such as core.Transfer and any future per-(user, conversation) request quotas.
rocketmq
Package rocketmq centralises AIM's RocketMQ (gRPC proxy protocol) wiring: producer construction, the simple-consumer loop used by every consumer service, and the transactional-message plumbing that replaced the removed outbox poller.
Package rocketmq centralises AIM's RocketMQ (gRPC proxy protocol) wiring: producer construction, the simple-consumer loop used by every consumer service, and the transactional-message plumbing that replaced the removed outbox poller.
rpc
user
Package user holds the closed sets stored in the user_info table.
Package user holds the closed sets stored in the user_info table.

Jump to

Keyboard shortcuts

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