98 Commits

Author SHA1 Message Date
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
55fc4bdfcb changed id allocation back to linear allocation. time-based or random number-based allocation make debugging troublesome 2024-12-13 23:19:26 +09:00
c562a41cb8 implementing a ssh termianl 2024-12-13 02:25:27 +09:00
f6ea852e61 added the proxy service for http/https client peer on the server side. work in progress 2024-12-12 21:09:16 +09:00
07e11a8e25 updated to limit max rpc connecitons and peer connections.
changed to use time.Duration type for timeout values
2024-12-10 14:37:14 +09:00
2d15f0d2a4 defined PeerId, RouteId, ConnId types and made relevant changes 2024-12-09 22:41:23 +09:00
464a550c68 added a stop request guard in starting a control channel 2024-12-09 17:23:26 +09:00
f1c146d94f permitted the client mode to start without server addresses 2024-12-09 15:43:29 +09:00
2c7c08c22f added the log-mask option in the configuration file 2024-12-09 01:51:04 +09:00
3c9b65476a minor code formatting 2024-12-08 17:47:08 +09:00
feedff3f04 implemented timeout for an initial GetSeed call.
Added RPC.Endpoint.Authority
2024-12-08 16:48:23 +09:00
7479cc0f3a enhancing the client to accept multipl rpc server addresses 2024-12-08 16:06:18 +09:00