http_agent

command
v0.0.0-...-1c5bec1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: MIT Imports: 13 Imported by: 0

README

Installation

  1. Install Go 1.7.x or greater, git, setup $GOPATH, and PATH=$PATH:$GOPATH/bin

  2. Run the server

    cd $GOPATH/src/github.com/maddevsio/screen-monitoring/agents/http_agent
    make depends
    make build
    ./http_agent -httpAddr=7066 -dashboardURL=http://localhost:8080/dashboard/v1/register -targetHost=github.com:443
    

Docker

$ docker build -t http-agent .
$ docker run -it --rm --name my-http-agent http-agent

Env usage

export PORT=8090
export DASHBOARD_URL="http://localhost:8080/dashboard/v1/register"
export TARGET_HOST="github.com:443"

Flag usage

Usage of ./http_agent:
  -dashboardURL string
       	Dashboard service URL (default "http://localhost:8080/dashboard/v1/register")
  -httpAddr string
       	HTTP listen address (default ":8090")
  -targetHost string
       	Target hostname and port (default "google.com:80")

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