This is a prototype of Traffic Router's HTTP side in Golang.
How to build
To get this app running locally:
Clone this repo
Install Golang programming language (instructions)
Configuration
Sample configuration file(cfg.json) available in traffic_router_golang directory, please add coveragezone files to path specified in cfg.json
Build
Compile and generate binary:
cd traffic_router_goland
go mod vendor
go build #This will generate binary file traffic_router_golang)
Unit Test
Run go test ./... from traffic_router_golang directory
? github.com/apache/trafficcontrol/experimental/traffic_router_golang [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/availableservers [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/cgsrch [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/config [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/coveragezone [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/crconfig [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/crconfigdsservers [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/crconfigpoller [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/crconfigregex [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/crstates [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/crstatespoller [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/fetch [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/httpsrvr [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/ipmap [no test files]
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/nextcache [no test files]
ok github.com/apache/trafficcontrol/experimental/traffic_router_golang/quadtree 1.190s
? github.com/apache/trafficcontrol/experimental/traffic_router_golang/toutil [no test files]