1234567891011121314151617181920212223242526272829 |
- package service
- import (
- "context"
- "log/slog"
- )
- import (
- "google.golang.org/protobuf/types/known/emptypb"
- )
- import (
- "protocol-server/common"
- pb "protocol-server/rpc_idl/dr_protocol_pb"
- )
- type BasicServer struct {
- pb.UnimplementedBasicServer
- }
- func (s *BasicServer) SoftwareInfo(_ context.Context, in *emptypb.Empty) (*pb.SoftwareInfoReply, error) {
- slog.Info("Received SoftwareInfo")
- return &pb.SoftwareInfoReply{
- Module: common.Module,
- Desc: common.Desc,
- Build: common.Build,
- Version: common.Version,
- }, nil
- }
|