command
module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: May 6, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Used
$ git clone https://github.com/chenpkg/balancer.git
$ cd ./balancer
$ go build
run http test server
$ cd ./httptest
$ go run server.go 8080 8081 8082 8083
after run balancer
$ cd ..
$ ./balancer
Schema: http
Port: 8000
Health Check: true
Location:
Route: /
Proxy Pass: [http://127.0.0.1:8080 http://127.0.0.1:8081 http://127.0.0.1:8082 http://127.0.0.1:8083 http://127.0.0.1:8084]
Mode: round-robin
Route: /random
Proxy Pass: [http://127.0.0.1:8082 http://127.0.0.1:8083 http://127.0.0.1:8084]
Mode: random
and run http client
$ cd ./httptest
$ go run client.go
127.0.0.1:8080
127.0.0.1:8081
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
pkg
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.