Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
relay
command
Command relay connects to a relay server and forwards a channel's webhooks to a local URL.
|
Command relay connects to a relay server and forwards a channel's webhooks to a local URL. |
|
relay-server
command
Command relay-server is the public side: it receives webhooks on /h/{channel}, stores them in SQLite and hands them to connected clients.
|
Command relay-server is the public side: it receives webhooks on /h/{channel}, stores them in SQLite and hands them to connected clients. |
|
internal
|
|
|
client
Package client is the CLI side: it keeps a websocket open to the relay server, forwards each webhook to a local URL and sends the answer back.
|
Package client is the CLI side: it keeps a websocket open to the relay server, forwards each webhook to a local URL and sends the answer back. |
|
diff
Package diff computes a line diff with the longest-common-subsequence method.
|
Package diff computes a line diff with the longest-common-subsequence method. |
|
protocol
Package protocol defines the JSON frames exchanged over the websocket between the relay server and the CLI client.
|
Package protocol defines the JSON frames exchanged over the websocket between the relay server and the CLI client. |
|
server
Package server is the public relay: it captures webhooks on /h/{channel}, hands them to the connected CLI client over a websocket, returns the client's response, and serves an inspector UI.
|
Package server is the public relay: it captures webhooks on /h/{channel}, hands them to the connected CLI client over a websocket, returns the client's response, and serves an inspector UI. |
|
store
Package store keeps received webhook requests (and the responses the local target gave) in SQLite.
|
Package store keeps received webhook requests (and the responses the local target gave) in SQLite. |
Click to show internal directories.
Click to hide internal directories.