大蒜 / 网关
网关包用于处理合并客户端查询并将它们委派给单个微服务
1.1.4
2019-04-16 11:11 UTC
Requires
- php: >=7.1
- doctrine/doctrine-bundle: ^1.9
- garlic/bus: ^1.6.15
- garlic/graphql-php-tools: 1.*
- garlic/healthcheck: 1.*
- symfony-bundles/redis-bundle: ^2.2
- webonyx/graphql-php: *
Requires (Dev)
- symfony/phpunit-bridge: ^4.2
- dev-master
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-add_handle_files
- dev-feature/fix-error-message
- dev-feature/healthcheck-reorganisation
- dev-feature/catch-healthcheck-errors
- dev-feature/update-type-conflict
- dev-feature/split-variables
- dev-feature/fix-response-code
- dev-feature/fix-use-namespace
- dev-feature/update-response-format
- dev-feature/fix_variables
- dev-feature/refactoring_tests
This package is not auto-updated.
Last update: 2024-09-29 05:55:20 UTC
README
网关包增加了将多个 GraphQL 模式合并到单个结构并处理对单个微服务的请求的支持。
功能包括
- 在单个位置提供多个微服务的文档
- 在网关层进行验证
- 拆分并处理多个微服务的请求
- 服务发现
安装
使用 composer,需要
composer require garlic/gateway
用法
只需安装网关包的最新版本,并将环境变量 REDIS_HOST、REDIS_PORT 添加到 .env 文件以进行模式缓存。网关服务将在 "/main" 路由中可用。