basic.go 480 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "context"
  4. "log/slog"
  5. )
  6. import (
  7. "resource-server/common"
  8. pb "resource-server/rpc_idl/dr_resource_pb"
  9. )
  10. type BasicServer struct {
  11. pb.UnimplementedBasicServer
  12. }
  13. func (s *BasicServer) SoftwareInfo(_ context.Context, in *pb.EmptyRequest) (*pb.SoftwareInfoReply, error) {
  14. slog.Info("Received SoftwareInfo")
  15. return &pb.SoftwareInfoReply{
  16. Module: common.Module,
  17. Desc: common.Desc,
  18. Build: common.Build,
  19. Version: common.Version,
  20. }, nil
  21. }