bootstrap-data-server

command
v0.0.0-...-f8f499d Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 1 Imported by: 0

README

HTTP Server As Bootstrap Service

The server collects and coordinates the bootstrap information for the clients.

MIT License GoDoc

Start the webserver

cd ~/go/src/github.com/stefanhans/programming-reactive-systems-in-go/prototypes/liner-memberlist-chat/bootstrap-data-server

go build
./bootstrap-data-server

Test manually

curl -s http://localhost:8080/ping

curl -sd "3 1"  http://localhost:8080/config

curl -sd "alice-id alice 127.0.0.1 12340 tcp test 1"  http://localhost:8080/join
curl -sd "bob-id bob 127.0.0.1 12341 tcp test 2"  http://localhost:8080/join

curl -sd "alice-id" http://localhost:8080/leave
curl -s http://localhost:8080/list

curl -sd "2 1"  http://localhost:8080/config
curl -sd "alice-id alice 127.0.0.1 12341 tcp test 1552655444"  http://localhost:8080/refill

curl -s http://localhost:8080/reset

Test via API

cd ~/go/src/github.com/stefanhans/programming-reactive-systems-in-go/prototypes/liner-memberlist-chat/bootstrap-data-api

export BOOTSTRAP_DATA_SERVER="http://localhost:8080"
go test -run TestLocalhost

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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