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.
106 lines
3.8 KiB
Go
106 lines
3.8 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
// - protoc v3.6.1
|
|
// source: internal/pkg/grpc/monitoring.proto
|
|
|
|
package grpc
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
// MonitoringClient is the client API for Monitoring 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.
|
|
type MonitoringClient interface {
|
|
ReactorStatusHandler(ctx context.Context, in *ReactorStatusPing, opts ...grpc.CallOption) (*ReactorStatusResponse, error)
|
|
}
|
|
|
|
type monitoringClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewMonitoringClient(cc grpc.ClientConnInterface) MonitoringClient {
|
|
return &monitoringClient{cc}
|
|
}
|
|
|
|
func (c *monitoringClient) ReactorStatusHandler(ctx context.Context, in *ReactorStatusPing, opts ...grpc.CallOption) (*ReactorStatusResponse, error) {
|
|
out := new(ReactorStatusResponse)
|
|
err := c.cc.Invoke(ctx, "/grpc.monitoring/ReactorStatusHandler", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// MonitoringServer is the server API for Monitoring service.
|
|
// All implementations must embed UnimplementedMonitoringServer
|
|
// for forward compatibility
|
|
type MonitoringServer interface {
|
|
ReactorStatusHandler(context.Context, *ReactorStatusPing) (*ReactorStatusResponse, error)
|
|
mustEmbedUnimplementedMonitoringServer()
|
|
}
|
|
|
|
// UnimplementedMonitoringServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedMonitoringServer struct {
|
|
}
|
|
|
|
func (UnimplementedMonitoringServer) ReactorStatusHandler(context.Context, *ReactorStatusPing) (*ReactorStatusResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReactorStatusHandler not implemented")
|
|
}
|
|
func (UnimplementedMonitoringServer) mustEmbedUnimplementedMonitoringServer() {}
|
|
|
|
// UnsafeMonitoringServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to MonitoringServer will
|
|
// result in compilation errors.
|
|
type UnsafeMonitoringServer interface {
|
|
mustEmbedUnimplementedMonitoringServer()
|
|
}
|
|
|
|
func RegisterMonitoringServer(s grpc.ServiceRegistrar, srv MonitoringServer) {
|
|
s.RegisterService(&Monitoring_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Monitoring_ReactorStatusHandler_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ReactorStatusPing)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MonitoringServer).ReactorStatusHandler(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/grpc.monitoring/ReactorStatusHandler",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MonitoringServer).ReactorStatusHandler(ctx, req.(*ReactorStatusPing))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// Monitoring_ServiceDesc is the grpc.ServiceDesc for Monitoring service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Monitoring_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "grpc.monitoring",
|
|
HandlerType: (*MonitoringServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ReactorStatusHandler",
|
|
Handler: _Monitoring_ReactorStatusHandler_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "internal/pkg/grpc/monitoring.proto",
|
|
}
|