delivery

package
v0.0.0-...-fb81480 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 8 Imported by: 0

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

Handler aggregates all the API handlers (Auth, Wallet, Exchange, Middleware) and provides a unified entry point for route initialization and API handling.

func New

func New(services *service.Service, logger *slog.Logger, cfg *configs.ServerConfig) *Handler

New creates and returns a new instance of Handler with all the required handlers.

func (*Handler) InitRoutes

func (h *Handler) InitRoutes() *gin.Engine

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.

Jump to

Keyboard shortcuts

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