package
7.0.1+incompatible
Repository: https://github.com/apache/trafficcontrol.git
Documentation: pkg.go.dev
# README
Traffic Router
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]
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
CRConfigPath is the Traffic Monitor API path used to retrieve the CDN Snapshot.
CRStatesPath is the Traffic Monitor API path used to retrieve the states of the monitored cache servers.
DefaultConfigFile is the relative file path used as the default configuration file location.
UserAgent is the string passed by the utility in the HTTP User-Agent header.
Version is the utility's version.