e01a6b347c
updated to support multiple notice handlers with a fix on race condition accessing cts.Token on the client side
2025-03-21 12:53:16 +09:00
5fa6cd466b
added the routes parameter to the server-conns endpoint
2025-03-18 23:37:46 +09:00
cd32380425
added Atom[T] to have atomic manipulation of composite values
2025-03-13 21:24:59 +09:00
09593fd678
fixed some potential concurrency issues in the client side.
...
enhanded route_started log messages
renamed service to svc for some items
added two more fields to denote requested service address/network to ServerRoute
2025-03-11 21:12:05 +09:00
7b1d383813
renamed ReportEvent to ReportPacket
2025-03-08 11:34:05 +09:00
ecc1d4580f
removed redundant endding semicolons
2025-03-07 21:12:21 +09:00
e56c45b3bf
updated to return connections, routes, peers in ascending order by id over the control endpoint
2025-03-07 13:41:44 +09:00
b6fb296608
added close-on-conn-error-event.
...
added the client token in connection output over ctl
2025-03-05 00:44:00 +09:00
bec93289f5
added the CONN_ERROR event t ype
2025-03-04 01:16:46 +09:00
71a42af593
added a debugging log message for conn_notice packets
...
created SendNotice function for reuse by external parties
2025-02-26 19:45:29 +09:00
5c2695e46b
ongoing code refactoring to use common functions
2025-02-23 20:06:37 +09:00
7363986737
refactored functions in client-ctl.go to use common functions
2025-02-22 10:08:57 +09:00
d9aaa0a0ab
added code dealing with client connection token
2025-02-20 22:21:39 +09:00
c7b7bfd25f
added theConnDesc message to the grpc protocol
2025-02-20 00:59:00 +09:00
b5c1ae2a73
enhanced the reconnect logic in client.go
2025-02-19 10:38:23 +09:00
2b3a841299
added default notice handling interface
2025-02-18 14:44:45 +09:00
81f7bb0c0d
added /_ctl/client-conns/id/nocies
2025-02-18 01:17:51 +09:00
a0efb55c3e
trying to support notice event
2025-02-18 01:02:26 +09:00
be7f4f4da5
stored client-side peer info to ServerConnPeer when PEER_STARTED is received
2025-02-17 00:52:29 +09:00
f2536a0acc
added code dealing with server-side peers
2025-02-15 19:44:48 +09:00
3dc5d9c91e
updated to support cors in primitive manner
2025-02-10 14:48:18 +09:00
ec51c101ec
updated the authentication to recognize X-Auth-Username and X-Auth-Password
2025-02-04 01:30:19 +09:00
0fb57cb77b
added http auth config to the client-side control channel
2025-02-01 00:06:05 +09:00
c5f63328b2
added code to export metrics
2025-01-28 00:44:02 +09:00
810356efe5
added the State field to the ClientConn structure
2025-01-22 10:46:22 +09:00
90305e3eed
added the Static field to the ClientRoute structure
2025-01-19 12:17:27 +09:00
cfc0db4b54
renamed parse_duration_string to ParseDurationString
...
added DurationToSecString()
2025-01-19 01:56:31 +09:00
0809f9bedc
renamed cts.id/sid to cts.Id/Sid respectively
2025-01-18 13:32:42 +09:00
e2f1d58c5e
exposed some fields of the ClientRoute struct
2025-01-18 12:58:17 +09:00
e1eb346228
exposed some utility functions that handles http response headers
...
added AddCtlHandler function to the Server type
2025-01-15 01:19:50 +09:00
3a2ea68614
moved the panic handler to a common wrapper
...
added the foreign port proxy maker callback function
2025-01-11 11:48:19 +09:00
24ca5f01b5
added ExtendLifetime
2025-01-10 01:02:11 +09:00
a147ed64ec
added a new client-side endpoint /_ctl/client-conns/{conn_id}/routes-spsp/{port_id}
2025-01-09 23:02:50 +09:00
26c40ea70e
renamed tcp_addr_str_class to TcpAddrStrClass
2025-01-08 17:32:40 +09:00
13faadabcd
updated to assign connection id and route id from 1, using 0 as an automatic assigned marker
...
updated the client-side api to accept a route id for route creation
2025-01-07 23:59:39 +09:00
b8bd8f4d4c
support lifetime update of a client-side route
2025-01-07 15:23:05 +09:00
d95bc8385a
added lifetime to client route
2025-01-07 13:44:37 +09:00
8af910aa8f
fixed a wrong endpoint path
2025-01-06 21:28:31 +09:00
aa5f3d8af8
removed code for _init endpoint and cookie handling
...
changed to use /_ctl/ prefix for api access
2025-01-04 18:42:18 +09:00
a5bb59622e
removed unneeded code
2024-12-28 13:19:51 +09:00
9d266180e9
removed repeated GetId functions using struct embedding
2024-12-27 16:52:27 +09:00
6809cfdeb6
fixed the issue of no mutex lock/unlock when accessing some maps.
...
added a wpx service
2024-12-26 00:20:44 +09:00
1681b34374
ensured to call context cancellation function
2024-12-25 16:00:14 +09:00
2424a63db9
enhanced conneciton upgrade handling in http proxy code
2024-12-25 02:14:47 +09:00
960520b905
updated code to use ClientRouteConfig when adding a new route in control channel
2024-12-16 09:59:14 +09:00
a4ef87c031
added the new type ClientRouteConfig.
...
client-side route info is populated to a ClientRouteCofnig slice
2024-12-16 01:43:46 +09:00
8cab165cc4
enhanced the logger with file logging and rotation
2024-12-15 15:07:35 +09:00
bc9a40106c
improving logger to write to a file
2024-12-14 14:04:33 +09:00
25ce8a6ca4
added the client-peer-name field for route commands
2024-12-14 02:39:27 +09:00
7cea612ae5
trying to add client-side peer name
2024-12-14 00:19:12 +09:00