This commit is contained in:
2025-02-07 20:33:27 +08:00
parent 76a4b67269
commit e89e1a372a
28 changed files with 276 additions and 1691 deletions

View File

@@ -12,7 +12,7 @@ import (
var (
Service service
RootPrefix string = "/services/"
RootPrefix string = "/bsm_services/"
)
type service struct{}
@@ -37,10 +37,10 @@ func (s *service) Register(cli *clientv3.Client, serviceName string, port int) e
return err
}
print.Info("[Traingo Register] Service Key: %s", key)
print.Info("[Traingo Register] Service Val: %s", serviceAddr)
print.Info("[BSM Register] Service Key: %s", key)
print.Info("[BSM Register] Service Val: %s", serviceAddr)
print.Success("[Traingo Register] Service Register Complete.")
print.Success("[BSM Register] Service Register Complete.")
go func() {
for keepAliveResp := range keepAliveChan {