Documentation ¶
Overview ¶
Package delivery handles the routing of HTTP requests and the integration of different application layers, including authentication, wallet operations, and exchange services. It defines the HTTP handlers and routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { *auth.Auth *wallet.Wallet *grpcclient.Exchange *middleware.Middleware }
Handler aggregates all the API handlers (Auth, Wallet, Exchange, Middleware) and provides a unified entry point for route initialization and API handling.
func (*Handler) InitRoutes ¶
InitRoutes initializes and returns the gin engine with routes for user registration, login, and other wallet operations.
Directories ¶
Path | Synopsis |
---|---|
Package auth contains the logic for handling user authentication-related operations, including user registration, login, and token management.
|
Package auth contains the logic for handling user authentication-related operations, including user registration, login, and token management. |
Package grpcclient facilitates communication with external gRPC services, specifically for exchange rate retrieval and currency exchange operations.
|
Package grpcclient facilitates communication with external gRPC services, specifically for exchange rate retrieval and currency exchange operations. |
Package middleware provides middleware for handling common tasks like user identity verification (token validation).
|
Package middleware provides middleware for handling common tasks like user identity verification (token validation). |
Package wallet manages user wallet operations, including balance retrieval, deposits, and withdrawals.
|
Package wallet manages user wallet operations, including balance retrieval, deposits, and withdrawals. |
Click to show internal directories.
Click to hide internal directories.