Skip to content

Commit 71b8382

Browse files
committed
feat: rename signal to connqc and update README
1 parent bf7599b commit 71b8382

File tree

13 files changed

+22
-21
lines changed

13 files changed

+22
-21
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.env
22
/dist
3-
/signal
3+
/connqc

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
project_name: signal
1+
project_name: connqc
22
dist: dist
33

44
gomod:
55
proxy: true
66

77
builds:
8-
- main: ./cmd/signal
8+
- main: ./cmd/connqc
99
ldflags:
1010
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
1111
goos:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM gcr.io/distroless/static:nonroot
22

3-
COPY signal /signal
3+
COPY connqc /connqc
44

55
ENV ADDR ":8123"
66

77
EXPOSE 8123
8-
CMD ["./signal", "server"]
8+
CMD ["./connqc", "server"]

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</a>
1616
</p>
1717

18-
`signal` is a tool to control the quality of the network transport between multiple regions.
18+
`connqc` is a tool to control the quality of the network transport between multiple regions.
1919
It consists of a server that listens for TCP probing messages, and a client that sends said messages.
2020
The client logs the probing duration and warns if some messages get lost.
2121

@@ -34,13 +34,13 @@ The client logs the probing duration and warns if some messages get lost.
3434
Start the server. The default address is `:8123`:
3535

3636
```shell
37-
$ signal server
37+
$ connqc server
3838
```
3939

4040
or specify a port:
4141

4242
```shell
43-
$ signal server --addr=":1234"
43+
$ connqc server --addr=":1234"
4444
```
4545

4646
#### More Options
@@ -49,7 +49,7 @@ The `server` command supports the following additional arguments.
4949

5050
```shell
5151
OPTIONS:
52-
--addr value The address to listen on for signals (default: ":8123") [$ADDR]
52+
--addr value The address to listen on for probe messages (default: ":8123") [$ADDR]
5353
--buffer-size value The size of the read buffer used by the server (default: 512) [$BUFFER_SIZE]
5454
--read-timeout value The duration after which the server should timeout when reading from a connection (default: 2s) [$READ_TIMEOUT]
5555
--write-timeout value The duration after which the server should timeout when writing to a connection (default: 5s) [$WRITE_TIMEOUT]
@@ -71,22 +71,22 @@ $ firewall-cmd --remove-port=8123/tcp
7171

7272
### Client
7373

74-
Start the client with the signal server's address:
74+
Start the client with the connqc server's address:
7575

7676
```shell
77-
$ signal client --addr="127.0.0.1:8123"
77+
$ connqc client --addr="127.0.0.1:8123"
7878
```
7979

8080
To enable more human-readable logs, set the log format:
8181

8282
```shell
83-
$ signal client --addr="127.0.0.1:8123" --log.format="console"
83+
$ connqc client --addr="127.0.0.1:8123" --log.format="console"
8484
```
8585

8686
To increase the amount of sent requests, reduce the interval:
8787

8888
```shell
89-
$ signal client --addr="127.0.0.1:8123" --interval="200ms"
89+
$ connqc client --addr="127.0.0.1:8123" --interval="200ms"
9090
```
9191

9292
#### More Options
@@ -95,7 +95,7 @@ The `client` command supports the following additional arguments.
9595

9696
```shell
9797
OPTIONS:
98-
--addr value The address of a signal server [$ADDR]
98+
--addr value The address of a connqc server [$ADDR]
9999
--backoff value Duration to wait for before retrying to connect to the server (default: 1s) [$BACKOFF]
100100
--interval value Interval at which to send probe messages to the server (default: 1s) [$INTERVAL]
101101
--read-timeout value The duration after which the client should timeout when reading from a connection (default: 2s) [$READ_TIMEOUT]
File renamed without changes.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ var version = "¯\\_(ツ)_/¯"
3131
var commands = []*cli.Command{
3232
{
3333
Name: "client",
34-
Usage: "Run the signal client",
34+
Usage: "Run the connqc client",
3535
Flags: cmd.Flags{
3636
&cli.StringFlag{
3737
Name: flagAddr,
38-
Usage: "The address of a signal server",
38+
Usage: "The address of a connqc server",
3939
Required: true,
4040
EnvVars: []string{strcase.ToSNAKE(flagAddr)},
4141
},
@@ -68,11 +68,11 @@ var commands = []*cli.Command{
6868
},
6969
{
7070
Name: "server",
71-
Usage: "Run the signal server",
71+
Usage: "Run the connqc server",
7272
Flags: cmd.Flags{
7373
&cli.StringFlag{
7474
Name: flagAddr,
75-
Usage: "The address to listen on for signals",
75+
Usage: "The address to listen on for probe messages",
7676
Value: ":8123",
7777
EnvVars: []string{strcase.ToSNAKE(flagAddr)},
7878
},
@@ -115,7 +115,8 @@ func realMain() (code int) {
115115
}()
116116

117117
app := cli.NewApp()
118-
app.Name = "signal"
118+
app.Name = "connqc"
119+
app.Description = "Connection quality control checker"
119120
app.Version = version
120121
app.Commands = commands
121122

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// Package connqc contains the signal server and client implementations,
1+
// Package connqc contains the connqc server and client implementations,
22
// as well as the probe message encoder and decoder.
33
package connqc

0 commit comments

Comments
 (0)