traffic_router_golang

command
v7.0.0-rc0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 15 Imported by: 0

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]
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL