Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DiagnosticService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sis.rp.dev.v1.DiagnosticService", HandlerType: (*DiagnosticServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _DiagnosticService_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "diagnostic/diagnostic.proto", }
DiagnosticService_ServiceDesc is the grpc.ServiceDesc for DiagnosticService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_diagnostic_diagnostic_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDiagnosticServiceServer ¶
func RegisterDiagnosticServiceServer(s grpc.ServiceRegistrar, srv DiagnosticServiceServer)
Types ¶
type DiagnosticService ¶
type DiagnosticService struct { UnimplementedDiagnosticServiceServer // contains filtered or unexported fields }
func NewDiagnosticService ¶
func NewDiagnosticService(log *zap.SugaredLogger) DiagnosticService
func (DiagnosticService) Ping ¶
func (s DiagnosticService) Ping(ctx context.Context, request *PingRequest) (*PingResponse, error)
type DiagnosticServiceClient ¶
type DiagnosticServiceClient interface {
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}
DiagnosticServiceClient is the client API for DiagnosticService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDiagnosticServiceClient ¶
func NewDiagnosticServiceClient(cc grpc.ClientConnInterface) DiagnosticServiceClient
type DiagnosticServiceServer ¶
type DiagnosticServiceServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) // contains filtered or unexported methods }
DiagnosticServiceServer is the server API for DiagnosticService service. All implementations must embed UnimplementedDiagnosticServiceServer for forward compatibility
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct { Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` // contains filtered or unexported fields }
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetAnswer ¶
func (x *PingResponse) GetAnswer() string
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type UnimplementedDiagnosticServiceServer ¶
type UnimplementedDiagnosticServiceServer struct { }
UnimplementedDiagnosticServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDiagnosticServiceServer) Ping ¶
func (UnimplementedDiagnosticServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
type UnsafeDiagnosticServiceServer ¶
type UnsafeDiagnosticServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDiagnosticServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiagnosticServiceServer will result in compilation errors.