// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package remote 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. const _ = grpc.SupportPackageIsVersion6 // ETHBACKENDClient is the client API for ETHBACKEND 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 ETHBACKENDClient interface { Add(ctx context.Context, in *TxRequest, opts ...grpc.CallOption) (*AddReply, error) Etherbase(ctx context.Context, in *EtherbaseRequest, opts ...grpc.CallOption) (*EtherbaseReply, error) NetVersion(ctx context.Context, in *NetVersionRequest, opts ...grpc.CallOption) (*NetVersionReply, error) BloomStatus(ctx context.Context, in *BloomStatusRequest, opts ...grpc.CallOption) (*BloomStatusReply, error) } type eTHBACKENDClient struct { cc grpc.ClientConnInterface } func NewETHBACKENDClient(cc grpc.ClientConnInterface) ETHBACKENDClient { return &eTHBACKENDClient{cc} } func (c *eTHBACKENDClient) Add(ctx context.Context, in *TxRequest, opts ...grpc.CallOption) (*AddReply, error) { out := new(AddReply) err := c.cc.Invoke(ctx, "/remote.ETHBACKEND/Add", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *eTHBACKENDClient) Etherbase(ctx context.Context, in *EtherbaseRequest, opts ...grpc.CallOption) (*EtherbaseReply, error) { out := new(EtherbaseReply) err := c.cc.Invoke(ctx, "/remote.ETHBACKEND/Etherbase", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *eTHBACKENDClient) NetVersion(ctx context.Context, in *NetVersionRequest, opts ...grpc.CallOption) (*NetVersionReply, error) { out := new(NetVersionReply) err := c.cc.Invoke(ctx, "/remote.ETHBACKEND/NetVersion", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *eTHBACKENDClient) BloomStatus(ctx context.Context, in *BloomStatusRequest, opts ...grpc.CallOption) (*BloomStatusReply, error) { out := new(BloomStatusReply) err := c.cc.Invoke(ctx, "/remote.ETHBACKEND/BloomStatus", in, out, opts...) if err != nil { return nil, err } return out, nil } // ETHBACKENDServer is the server API for ETHBACKEND service. // All implementations must embed UnimplementedETHBACKENDServer // for forward compatibility type ETHBACKENDServer interface { Add(context.Context, *TxRequest) (*AddReply, error) Etherbase(context.Context, *EtherbaseRequest) (*EtherbaseReply, error) NetVersion(context.Context, *NetVersionRequest) (*NetVersionReply, error) BloomStatus(context.Context, *BloomStatusRequest) (*BloomStatusReply, error) mustEmbedUnimplementedETHBACKENDServer() } // UnimplementedETHBACKENDServer must be embedded to have forward compatible implementations. type UnimplementedETHBACKENDServer struct { } func (*UnimplementedETHBACKENDServer) Add(context.Context, *TxRequest) (*AddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Add not implemented") } func (*UnimplementedETHBACKENDServer) Etherbase(context.Context, *EtherbaseRequest) (*EtherbaseReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Etherbase not implemented") } func (*UnimplementedETHBACKENDServer) NetVersion(context.Context, *NetVersionRequest) (*NetVersionReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NetVersion not implemented") } func (*UnimplementedETHBACKENDServer) BloomStatus(context.Context, *BloomStatusRequest) (*BloomStatusReply, error) { return nil, status.Errorf(codes.Unimplemented, "method BloomStatus not implemented") } func (*UnimplementedETHBACKENDServer) mustEmbedUnimplementedETHBACKENDServer() {} func RegisterETHBACKENDServer(s *grpc.Server, srv ETHBACKENDServer) { s.RegisterService(&_ETHBACKEND_serviceDesc, srv) } func _ETHBACKEND_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TxRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ETHBACKENDServer).Add(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/remote.ETHBACKEND/Add", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ETHBACKENDServer).Add(ctx, req.(*TxRequest)) } return interceptor(ctx, in, info, handler) } func _ETHBACKEND_Etherbase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EtherbaseRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ETHBACKENDServer).Etherbase(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/remote.ETHBACKEND/Etherbase", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ETHBACKENDServer).Etherbase(ctx, req.(*EtherbaseRequest)) } return interceptor(ctx, in, info, handler) } func _ETHBACKEND_NetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NetVersionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ETHBACKENDServer).NetVersion(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/remote.ETHBACKEND/NetVersion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ETHBACKENDServer).NetVersion(ctx, req.(*NetVersionRequest)) } return interceptor(ctx, in, info, handler) } func _ETHBACKEND_BloomStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(BloomStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ETHBACKENDServer).BloomStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/remote.ETHBACKEND/BloomStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ETHBACKENDServer).BloomStatus(ctx, req.(*BloomStatusRequest)) } return interceptor(ctx, in, info, handler) } var _ETHBACKEND_serviceDesc = grpc.ServiceDesc{ ServiceName: "remote.ETHBACKEND", HandlerType: (*ETHBACKENDServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Add", Handler: _ETHBACKEND_Add_Handler, }, { MethodName: "Etherbase", Handler: _ETHBACKEND_Etherbase_Handler, }, { MethodName: "NetVersion", Handler: _ETHBACKEND_NetVersion_Handler, }, { MethodName: "BloomStatus", Handler: _ETHBACKEND_BloomStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "remote/ethbackend.proto", }