mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-03-06 00:37:42 +08:00
* .20 testing * Read in the debug by env variable (#514) * v2.1.0.19 * enhanced error logging, fix seniority marker join blocker, fix sync message size limit defaults * resolve signature failure * additional error logging for merge-related signatures * fix: one-shot sync message size, app shard TC signature size, collector/hotstuff race condition, expired joins blocking new joins due to pruning disable * remove compat with old 2.0.0 blossomsub * fix: resolve abandoned prover joins * reload prover registry * fix stale worker proposal edge * add full sanity check on join before submitting to identify bug * resolve non-fallthrough condition that should be fallthrough * fix: resolve rare SIGFPE, fix orphan expired joins blocking workers from reallocating * add reconnect fallback if no peers are found with variable reconnect time (#511) Co-authored-by: Tyler Sturos <55340199+tjsturos@users.noreply.github.com> * update base peer count to 1 (#513) * fix: expired prover join frames, starting port ranges, proposer getting stuck, and seniority on joins * fix: panic on shutdown, libp2p discovery picking inaccessible peers, coverage event check not in shutdown logic, amend app shard worker behavior to mirror global for prover root reconciliation * fix: shutdown scenario quirks, reload hanging * fix: do not bailout early on shutdown of coverage check * fix: force registry refresh on worker waiting for registration * add more logging to wait for prover * fix: worker manager refreshes the filter on allocation, snapshots blocking close on shutdown * tweak: force shutdown after five seconds for app worker * fix: don't loop when shutting down * fix: slight reordering, also added named workers to trace hanging shutdowns * use deterministic key for peer id of workers to stop flagging workers as sybil attacks * fix: remove pubsub stop from app consensus engine as it shouldn't manage pubsub lifecycle, integrate shutdown context to PerformSync to prevent stuck syncs from halting respawn * fix: blossomsub pubsub interface does not properly track subscription status * fix: subscribe order to avoid nil panic * switch from dnsaddr to dns4 * add missing quic-v1 * additional logging to isolate respawn quirks * fix: dnsaddr -> dns4 for blossomsub * allow debug env var to be read --------- Co-authored-by: Cassandra Heart <cassandra@quilibrium.com> Co-authored-by: Tyler Sturos <55340199+tjsturos@users.noreply.github.com> Co-authored-by: Cassandra Heart <7929478+CassOnMars@users.noreply.github.com> * fix newPebbleDB constructor config param (#517) * fix: high CPU overhead in initial worker behaviors/ongoing sync * faster docker builds with better caching * qol: add extra data to node info, and query metrics from command line * leave proposals for overcrowded shards * hub-and-spoke global message broadcasts * small tweaks to cli output for join frames --------- Co-authored-by: winged-pegasus <55340199+winged-pegasus@users.noreply.github.com> Co-authored-by: Tyler Sturos <55340199+tjsturos@users.noreply.github.com> Co-authored-by: Black Swan <3999712+blacks1ne@users.noreply.github.com>
512 lines
20 KiB
Go
512 lines
20 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"
|
|
NodeService_GetMetrics_FullMethodName = "/quilibrium.node.node.pb.NodeService/GetMetrics"
|
|
)
|
|
|
|
// 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)
|
|
GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, 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
|
|
}
|
|
|
|
func (c *nodeServiceClient) GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error) {
|
|
out := new(GetMetricsResponse)
|
|
err := c.cc.Invoke(ctx, NodeService_GetMetrics_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)
|
|
GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, 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) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetMetrics 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)
|
|
}
|
|
|
|
func _NodeService_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetMetricsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(NodeServiceServer).GetMetrics(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: NodeService_GetMetrics_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(NodeServiceServer).GetMetrics(ctx, req.(*GetMetricsRequest))
|
|
}
|
|
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,
|
|
},
|
|
{
|
|
MethodName: "GetMetrics",
|
|
Handler: _NodeService_GetMetrics_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",
|
|
}
|