You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ping.go 650 B

1234567891011121314151617181920
  1. package grpc
  2. import (
  3. "context"
  4. agtrpc "gitlink.org.cn/cloudream/storage2/common/pkgs/grpc/agent"
  5. )
  6. // Ping 是一个RPC方法,用于验证服务的可用性。
  7. //
  8. // 参数:
  9. // context.Context: 传递上下文信息,包括请求的元数据和取消信号。
  10. // *agtrpc.PingReq: 传递的Ping请求数据,当前实现中未使用。
  11. //
  12. // 返回值:
  13. // *agtrpc.PingResp: Ping响应数据,当前实现中始终返回空响应。
  14. // error: 如果处理过程中出现错误,则返回错误信息;否则返回nil。
  15. func (s *Service) Ping(context.Context, *agtrpc.PingReq) (*agtrpc.PingResp, error) {
  16. return &agtrpc.PingResp{}, nil
  17. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。