ceremonyclient/protobufs/node_grpc.pb.go
Cassandra Heart f5216924c0
v2.1.0.15
2025-12-09 16:30:43 -06:00

475 lines
18 KiB
Go

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc v5.29.3
// source: node.proto
package protobufs
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
const (
NodeService_GetPeerInfo_FullMethodName = "/quilibrium.node.node.pb.NodeService/GetPeerInfo"
NodeService_GetNodeInfo_FullMethodName = "/quilibrium.node.node.pb.NodeService/GetNodeInfo"
NodeService_GetWorkerInfo_FullMethodName = "/quilibrium.node.node.pb.NodeService/GetWorkerInfo"
NodeService_Send_FullMethodName = "/quilibrium.node.node.pb.NodeService/Send"
NodeService_GetTokensByAccount_FullMethodName = "/quilibrium.node.node.pb.NodeService/GetTokensByAccount"
)
// NodeServiceClient is the client API for NodeService 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 NodeServiceClient interface {
GetPeerInfo(ctx context.Context, in *GetPeerInfoRequest, opts ...grpc.CallOption) (*PeerInfoResponse, error)
GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error)
GetWorkerInfo(ctx context.Context, in *GetWorkerInfoRequest, opts ...grpc.CallOption) (*WorkerInfoResponse, error)
Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
GetTokensByAccount(ctx context.Context, in *GetTokensByAccountRequest, opts ...grpc.CallOption) (*GetTokensByAccountResponse, error)
}
type nodeServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNodeServiceClient(cc grpc.ClientConnInterface) NodeServiceClient {
return &nodeServiceClient{cc}
}
func (c *nodeServiceClient) GetPeerInfo(ctx context.Context, in *GetPeerInfoRequest, opts ...grpc.CallOption) (*PeerInfoResponse, error) {
out := new(PeerInfoResponse)
err := c.cc.Invoke(ctx, NodeService_GetPeerInfo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeServiceClient) GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) {
out := new(NodeInfoResponse)
err := c.cc.Invoke(ctx, NodeService_GetNodeInfo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeServiceClient) GetWorkerInfo(ctx context.Context, in *GetWorkerInfoRequest, opts ...grpc.CallOption) (*WorkerInfoResponse, error) {
out := new(WorkerInfoResponse)
err := c.cc.Invoke(ctx, NodeService_GetWorkerInfo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeServiceClient) Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) {
out := new(SendResponse)
err := c.cc.Invoke(ctx, NodeService_Send_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nodeServiceClient) GetTokensByAccount(ctx context.Context, in *GetTokensByAccountRequest, opts ...grpc.CallOption) (*GetTokensByAccountResponse, error) {
out := new(GetTokensByAccountResponse)
err := c.cc.Invoke(ctx, NodeService_GetTokensByAccount_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NodeServiceServer is the server API for NodeService service.
// All implementations must embed UnimplementedNodeServiceServer
// for forward compatibility
type NodeServiceServer interface {
GetPeerInfo(context.Context, *GetPeerInfoRequest) (*PeerInfoResponse, error)
GetNodeInfo(context.Context, *GetNodeInfoRequest) (*NodeInfoResponse, error)
GetWorkerInfo(context.Context, *GetWorkerInfoRequest) (*WorkerInfoResponse, error)
Send(context.Context, *SendRequest) (*SendResponse, error)
GetTokensByAccount(context.Context, *GetTokensByAccountRequest) (*GetTokensByAccountResponse, error)
mustEmbedUnimplementedNodeServiceServer()
}
// UnimplementedNodeServiceServer must be embedded to have forward compatible implementations.
type UnimplementedNodeServiceServer struct {
}
func (UnimplementedNodeServiceServer) GetPeerInfo(context.Context, *GetPeerInfoRequest) (*PeerInfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPeerInfo not implemented")
}
func (UnimplementedNodeServiceServer) GetNodeInfo(context.Context, *GetNodeInfoRequest) (*NodeInfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetNodeInfo not implemented")
}
func (UnimplementedNodeServiceServer) GetWorkerInfo(context.Context, *GetWorkerInfoRequest) (*WorkerInfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWorkerInfo not implemented")
}
func (UnimplementedNodeServiceServer) Send(context.Context, *SendRequest) (*SendResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Send not implemented")
}
func (UnimplementedNodeServiceServer) GetTokensByAccount(context.Context, *GetTokensByAccountRequest) (*GetTokensByAccountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTokensByAccount not implemented")
}
func (UnimplementedNodeServiceServer) mustEmbedUnimplementedNodeServiceServer() {}
// UnsafeNodeServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to NodeServiceServer will
// result in compilation errors.
type UnsafeNodeServiceServer interface {
mustEmbedUnimplementedNodeServiceServer()
}
func RegisterNodeServiceServer(s grpc.ServiceRegistrar, srv NodeServiceServer) {
s.RegisterService(&NodeService_ServiceDesc, srv)
}
func _NodeService_GetPeerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPeerInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeServiceServer).GetPeerInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: NodeService_GetPeerInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeServiceServer).GetPeerInfo(ctx, req.(*GetPeerInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeService_GetNodeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetNodeInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeServiceServer).GetNodeInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: NodeService_GetNodeInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeServiceServer).GetNodeInfo(ctx, req.(*GetNodeInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeService_GetWorkerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWorkerInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeServiceServer).GetWorkerInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: NodeService_GetWorkerInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeServiceServer).GetWorkerInfo(ctx, req.(*GetWorkerInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeService_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SendRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeServiceServer).Send(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: NodeService_Send_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeServiceServer).Send(ctx, req.(*SendRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NodeService_GetTokensByAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTokensByAccountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeServiceServer).GetTokensByAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: NodeService_GetTokensByAccount_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeServiceServer).GetTokensByAccount(ctx, req.(*GetTokensByAccountRequest))
}
return interceptor(ctx, in, info, handler)
}
// NodeService_ServiceDesc is the grpc.ServiceDesc for NodeService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var NodeService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "quilibrium.node.node.pb.NodeService",
HandlerType: (*NodeServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetPeerInfo",
Handler: _NodeService_GetPeerInfo_Handler,
},
{
MethodName: "GetNodeInfo",
Handler: _NodeService_GetNodeInfo_Handler,
},
{
MethodName: "GetWorkerInfo",
Handler: _NodeService_GetWorkerInfo_Handler,
},
{
MethodName: "Send",
Handler: _NodeService_Send_Handler,
},
{
MethodName: "GetTokensByAccount",
Handler: _NodeService_GetTokensByAccount_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "node.proto",
}
const (
ConnectivityService_TestConnectivity_FullMethodName = "/quilibrium.node.node.pb.ConnectivityService/TestConnectivity"
)
// ConnectivityServiceClient is the client API for ConnectivityService 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 ConnectivityServiceClient interface {
TestConnectivity(ctx context.Context, in *ConnectivityTestRequest, opts ...grpc.CallOption) (*ConnectivityTestResponse, error)
}
type connectivityServiceClient struct {
cc grpc.ClientConnInterface
}
func NewConnectivityServiceClient(cc grpc.ClientConnInterface) ConnectivityServiceClient {
return &connectivityServiceClient{cc}
}
func (c *connectivityServiceClient) TestConnectivity(ctx context.Context, in *ConnectivityTestRequest, opts ...grpc.CallOption) (*ConnectivityTestResponse, error) {
out := new(ConnectivityTestResponse)
err := c.cc.Invoke(ctx, ConnectivityService_TestConnectivity_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ConnectivityServiceServer is the server API for ConnectivityService service.
// All implementations must embed UnimplementedConnectivityServiceServer
// for forward compatibility
type ConnectivityServiceServer interface {
TestConnectivity(context.Context, *ConnectivityTestRequest) (*ConnectivityTestResponse, error)
mustEmbedUnimplementedConnectivityServiceServer()
}
// UnimplementedConnectivityServiceServer must be embedded to have forward compatible implementations.
type UnimplementedConnectivityServiceServer struct {
}
func (UnimplementedConnectivityServiceServer) TestConnectivity(context.Context, *ConnectivityTestRequest) (*ConnectivityTestResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TestConnectivity not implemented")
}
func (UnimplementedConnectivityServiceServer) mustEmbedUnimplementedConnectivityServiceServer() {}
// UnsafeConnectivityServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ConnectivityServiceServer will
// result in compilation errors.
type UnsafeConnectivityServiceServer interface {
mustEmbedUnimplementedConnectivityServiceServer()
}
func RegisterConnectivityServiceServer(s grpc.ServiceRegistrar, srv ConnectivityServiceServer) {
s.RegisterService(&ConnectivityService_ServiceDesc, srv)
}
func _ConnectivityService_TestConnectivity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ConnectivityTestRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConnectivityServiceServer).TestConnectivity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ConnectivityService_TestConnectivity_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConnectivityServiceServer).TestConnectivity(ctx, req.(*ConnectivityTestRequest))
}
return interceptor(ctx, in, info, handler)
}
// ConnectivityService_ServiceDesc is the grpc.ServiceDesc for ConnectivityService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ConnectivityService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "quilibrium.node.node.pb.ConnectivityService",
HandlerType: (*ConnectivityServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "TestConnectivity",
Handler: _ConnectivityService_TestConnectivity_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "node.proto",
}
const (
DataIPCService_Respawn_FullMethodName = "/quilibrium.node.node.pb.DataIPCService/Respawn"
DataIPCService_CreateJoinProof_FullMethodName = "/quilibrium.node.node.pb.DataIPCService/CreateJoinProof"
)
// DataIPCServiceClient is the client API for DataIPCService 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 DataIPCServiceClient interface {
Respawn(ctx context.Context, in *RespawnRequest, opts ...grpc.CallOption) (*RespawnResponse, error)
CreateJoinProof(ctx context.Context, in *CreateJoinProofRequest, opts ...grpc.CallOption) (*CreateJoinProofResponse, error)
}
type dataIPCServiceClient struct {
cc grpc.ClientConnInterface
}
func NewDataIPCServiceClient(cc grpc.ClientConnInterface) DataIPCServiceClient {
return &dataIPCServiceClient{cc}
}
func (c *dataIPCServiceClient) Respawn(ctx context.Context, in *RespawnRequest, opts ...grpc.CallOption) (*RespawnResponse, error) {
out := new(RespawnResponse)
err := c.cc.Invoke(ctx, DataIPCService_Respawn_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dataIPCServiceClient) CreateJoinProof(ctx context.Context, in *CreateJoinProofRequest, opts ...grpc.CallOption) (*CreateJoinProofResponse, error) {
out := new(CreateJoinProofResponse)
err := c.cc.Invoke(ctx, DataIPCService_CreateJoinProof_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DataIPCServiceServer is the server API for DataIPCService service.
// All implementations must embed UnimplementedDataIPCServiceServer
// for forward compatibility
type DataIPCServiceServer interface {
Respawn(context.Context, *RespawnRequest) (*RespawnResponse, error)
CreateJoinProof(context.Context, *CreateJoinProofRequest) (*CreateJoinProofResponse, error)
mustEmbedUnimplementedDataIPCServiceServer()
}
// UnimplementedDataIPCServiceServer must be embedded to have forward compatible implementations.
type UnimplementedDataIPCServiceServer struct {
}
func (UnimplementedDataIPCServiceServer) Respawn(context.Context, *RespawnRequest) (*RespawnResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Respawn not implemented")
}
func (UnimplementedDataIPCServiceServer) CreateJoinProof(context.Context, *CreateJoinProofRequest) (*CreateJoinProofResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateJoinProof not implemented")
}
func (UnimplementedDataIPCServiceServer) mustEmbedUnimplementedDataIPCServiceServer() {}
// UnsafeDataIPCServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to DataIPCServiceServer will
// result in compilation errors.
type UnsafeDataIPCServiceServer interface {
mustEmbedUnimplementedDataIPCServiceServer()
}
func RegisterDataIPCServiceServer(s grpc.ServiceRegistrar, srv DataIPCServiceServer) {
s.RegisterService(&DataIPCService_ServiceDesc, srv)
}
func _DataIPCService_Respawn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RespawnRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DataIPCServiceServer).Respawn(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: DataIPCService_Respawn_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DataIPCServiceServer).Respawn(ctx, req.(*RespawnRequest))
}
return interceptor(ctx, in, info, handler)
}
func _DataIPCService_CreateJoinProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateJoinProofRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DataIPCServiceServer).CreateJoinProof(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: DataIPCService_CreateJoinProof_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DataIPCServiceServer).CreateJoinProof(ctx, req.(*CreateJoinProofRequest))
}
return interceptor(ctx, in, info, handler)
}
// DataIPCService_ServiceDesc is the grpc.ServiceDesc for DataIPCService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var DataIPCService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "quilibrium.node.node.pb.DataIPCService",
HandlerType: (*DataIPCServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Respawn",
Handler: _DataIPCService_Respawn_Handler,
},
{
MethodName: "CreateJoinProof",
Handler: _DataIPCService_CreateJoinProof_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "node.proto",
}