core-api
May 31, 2023 ยท View on GitHub
This project provides some APIs for APISIX/Plugins and OpenAPI.
note:
- depends on database only
- use cache, should be fast
layers
view(api//.go) -> service -> cache -> dao -> database
viewonly do the validation and conversionservicedo the business logiccacheonly care about the cachedaodo the querydatabaseis the database of bk-apigateway
develop
go 1.20required
build and run
# install tools
make init
# download vendor
make dep
# build
make build
# build and serve
make serve
develop and test
# test
make test
# generate mock files
make mock
# do format
make fmt
# check lint
make lint
# build image
make dev-image