Modelized Data Interface.
This product generates highly available, high-performance and flexible database storage tier services for developers in a data modeling approach, providing industry-standard data interfaces.
Developers only need to set up the entity relationship diagram to get the highly available and high performance Web API fully automatically, and can complete the distribution and upgrade of data interface through simple operation steps or automated operation. MDI is our data interface service product designed for this purpose.
mdi
├── cmd/
│ └── kernel/ the core part of api
│ │ └── router/
│ │ │ └── handler/
│ │ │ └── router.go
│ │ └── main.go
│ │ └── .dockerfile
│ └── integrationTests/
│ └── Agent/ the User-Generated API service
│ │ └── router/
│ │ │ └── handler/
│ │ │ │ └── pg/
│ │ │ │ │ └── rest/
│ │ │ │ │ └── graphQL/
│ │ │ │ └── ti/
│ │ │ │ └── rest/
│ │ │ │ └── graphQL/
│ │ │ └── router.go
│ │ └── main.go
│ │ └── .dockerfile
├── internal/
│ └── kernel/ common components for modeling and persistence
│ │ └── metadata/
| │ │ └──modeling
│ │ │ │ └── modeling.xsd
│ │ │ │ └── modeling.go
| │ │ └──migration
│ │ │ └── migration.xsd
│ │ │ └── migration.go
│ │ └── postgres/
│ │ │ └──handler.go
│ │ └── tiDB/
│ │ └──handler.go
│ └── unitTests/
├── └── pkg/
│ └── middleware/
Install the following
cd cmd\kernel
go run main.go
your service endpoint will run like such url: http://localhost:8080/ping
Methods and tests need to be written in the same file
Example:
pkg/
└── xxx.go
└── xxx_test.go