renamed server_ctl to ServerCtl and capitalized the first letter of inner fields for exposure

This commit is contained in:
2025-03-29 13:29:02 +09:00
parent 76cba687ed
commit 918b887517
6 changed files with 199 additions and 151 deletions

View File

@ -180,7 +180,7 @@ type client_ctl_ws struct {
// ------------------------------------
func (ctl *client_ctl) Id() string {
func (ctl *client_ctl) Identity() string {
return ctl.id
}
@ -532,9 +532,9 @@ func (ctl *client_ctl_client_conns_id_routes) ServeHTTP(w http.ResponseWriter, r
Id: jcr.RId,
PeerAddr: jcr.ClientPeerAddr,
PeerName: jcr.ClientPeerName,
Option: server_peer_option,
ServiceAddr: jcr.ServerPeerSvcAddr,
ServiceNet: jcr.ServerPeerSvcNet,
ServiceOption: server_peer_option,
Lifetime: lifetime,
Static: false,
}