Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
attachment/rpc
command
|
|
|
attachment/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
|
|
|
auth/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. |
|
auth/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. |
|
auth/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
|
|
|
core/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. |
|
data_parsing
command
|
|
|
gateway/api
command
|
|
|
gateway/api/internal/authctx
Package authctx carries the authenticated caller through an HTTP request.
|
Package authctx carries the authenticated caller through an HTTP request. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
gateway/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. |
|
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
|
|
|
logic/rpc/internal/service/rbac
Package rbac decides conversation permissions with Casbin.
|
Package rbac decides conversation permissions with Casbin. |
|
logic/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. |
|
logic/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. |
|
logic/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. |
|
logic/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. |
|
shared/attachmentstore/orm
Package orm holds the GORM models of the aim_attachment database.
|
Package orm holds the GORM models of the aim_attachment database. |
|
shared/botperm
Package botperm defines action-based permission helpers for Bot OpenAPI.
|
Package botperm defines action-based permission helpers for Bot OpenAPI. |
|
shared/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. |
|
shared/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. |
|
shared/events
Package events defines the broker payloads exchanged between AIM services.
|
Package events defines the broker payloads exchanged between AIM services. |
|
shared/gormdb
Package gormdb centralizes GORM connection setup for AIM services.
|
Package gormdb centralizes GORM connection setup for AIM services. |
|
shared/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. |
|
shared/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. |
|
shared/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. |
|
shared/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. |
|
Package botsdk provides a Go client and webhook helpers for AIM Bot OpenAPI.
|
Package botsdk provides a Go client and webhook helpers for AIM Bot OpenAPI. |
|
shared
|
|
Click to show internal directories.
Click to hide internal directories.