Discover Packages
github.com/MamangRust/monolith-payment-gateway-shared
mapper
package
Version:
v1.0.29
Opens a new window with list of versions in this module.
Published: Apr 14, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Mapper Layer
This package provides mappers to convert data between various layers such as:
Database records
API responses
Proto (gRPC) messages
Service domain logic
Each subdirectory is organized by conversion type and grouped by feature/domain (e.g., Auth, User, Topup).
Structure
record/: Maps from database models to internal record representations.
response/: Maps from records to API/service responses.
api/: Used in controller/handler layer for HTTP/gRPC responses.
service/: Used within services to transform internal models into service outputs.
proto/: Maps between proto (gRPC) messages and domain models.
All mappers implement interfaces for maintainability and ease of testing.
Expand ▾
Collapse ▴
Documentation
¶
mapPaginationMeta maps a gRPC PaginationMeta to an HTTP-compatible API response PaginationMeta.
Args:
s: A pointer to a pb.PaginationMeta containing the gRPC response data.
Returns:
A pointer to a response.PaginationMeta containing the mapped data, including current page, page size,
total records, and total pages.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.