• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gatewayd-io / gatewayd / 10135210365
60%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2024 10:26PM UTC
Jobs 1
Files 53
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jul 2024 10:23PM UTC coverage: 61.981% (-0.01%) from 61.992%
10135210365

push

github

web-flow
Feature: Implement Multi-Proxy and Load Balancer Strategy Support (#577)

### Commit Title: Implement Multi-Proxy and Load Balancer Strategy Support

This commit introduces significant enhancements to the server configuration by supporting multiple proxies and load balancing strategies.

#### Key Changes:

- **API Tests**: Updated to reflect the change from a single `Proxy` to a list of `Proxies`.
- **Initialization and Configuration**: Modified `run.go` to support multiple proxies and load balancer strategies.
- **Configuration Files**: Updated to include fields for multiple proxies and load balancer strategies.
- **Global Configuration Validation**: Enhanced for clients, pools, and proxies.
- **Load Balancer Configuration**: Added a new `loadBalancer` section in `gatewayd.yaml` for rules and strategies.
- **Load Balancing Strategies**: Implemented strategy selection and the Round Robin strategy.
- **Testing**: Added tests for load balancer strategies and updated existing tests.
- **Error Handling**: Introduced a new error type `ErrorCodeLoadBalancerStrategyNotFound`.
- **Proxy Connection Handling**: Improved and added informative comments.

#### Configuration Example:

- **gatewayd.yaml**: Updated to reflect support for multiple proxies and load balancer strategies. Ensure to update your configuration files accordingly.

#### Testing:

- Updated existing tests and added new tests for multi-proxy and load balancing functionality.
- Verified configuration validation for proxies and load balancers.

#### Impact:

- Improved flexibility and scalability of server configuration.
- Enabled robust proxy management and efficient load distribution.

### Additional Changes:

- **Nested Map Structure**: Refactored maps to use nested structures for pools, clients, and proxies.
- **Variable Names**: Refactored for consistency and clarity across multiple files.
- **YAML Tags**: Added to struct fields for `Client`, `Pool`, and `Pro... (continued)

347 of 444 new or added lines in 8 files covered. (78.15%)

17 existing lines in 3 files now uncovered.

4198 of 6773 relevant lines covered (61.98%)

3.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10135210365.1 28 Jul 2024 10:26PM UTC 0
61.98
GitHub Action Run
Source Files on build 10135210365
Detailed source file information is not available for this build.
  • Back to Repo
  • fd147b47 on github
  • Prev Build on main (#9907289463)
  • Next Build on main (#10179529128)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc