You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-grpc_basic/api/v1/health/status.go

19 lines
417 B
Go

2 years ago
package health
import (
"context"
"github.com/ajikamaludin/go-grpc_basic/pkg/v1/utils/constants"
hlpb "github.com/ajikamaludin/go-grpc_basic/proto/v1/health"
"github.com/golang/protobuf/ptypes/empty"
)
func (s *Server) Status(ctx context.Context, req *empty.Empty) (*hlpb.Response, error) {
2 years ago
return &hlpb.Response{
Success: true,
Code: constants.SuccessCode,
Desc: constants.SuccesDesc,
}, nil
}