yc850k / haha

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run

sh bootstrap.sh
./bin/configServer

FindList

curl "http://localhost:3000/servers?room_id=1"

[
    {
        "id":3,
        "room_id":1,
        "address":"tcp://127.0.0.1:8080"
    },
    {
        "id":4,
        "room_id":1,
        "address":"tcp://127.0.0.1:8081"
    },
    {
        "id":5,
        "room_id":1,
        "address":"tcp://127.0.0.1:8082"
    }
]

GET

curl "http://localhost:3000/servers/3"

{
    "id":3,
    "room_id":1,
    "address":"tcp://127.0.0.1:8080"
}

About


Languages

Language:Go 93.1%Language:Shell 4.8%Language:Makefile 2.0%