Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)
- type ApiClient
- type ApiServer
- type OdaoNodes
- type OdaoNodesRequest
- type RocketPoolNodes
- type RocketPoolNodesRequest
- type SoloValidators
- type SoloValidatorsRequest
- type UnimplementedApiServer
- func (UnimplementedApiServer) GetOdaoNodes(context.Context, *OdaoNodesRequest) (*OdaoNodes, error)
- func (UnimplementedApiServer) GetRocketPoolNodes(context.Context, *RocketPoolNodesRequest) (*RocketPoolNodes, error)
- func (UnimplementedApiServer) GetSoloValidators(context.Context, *SoloValidatorsRequest) (*SoloValidators, error)
- func (UnimplementedApiServer) ValidateEIP1271(context.Context, *ValidateEIP1271Request) (*ValidateEIP1271Response, error)
- type UnsafeApiServer
- type ValidateEIP1271Request
- func (*ValidateEIP1271Request) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateEIP1271Request) GetAddress() []byte
- func (x *ValidateEIP1271Request) GetDataHash() []byte
- func (x *ValidateEIP1271Request) GetSignature() []byte
- func (*ValidateEIP1271Request) ProtoMessage()
- func (x *ValidateEIP1271Request) ProtoReflect() protoreflect.Message
- func (x *ValidateEIP1271Request) Reset()
- func (x *ValidateEIP1271Request) String() string
- type ValidateEIP1271Response
- func (*ValidateEIP1271Response) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateEIP1271Response) GetError() string
- func (x *ValidateEIP1271Response) GetValid() bool
- func (*ValidateEIP1271Response) ProtoMessage()
- func (x *ValidateEIP1271Response) ProtoReflect() protoreflect.Message
- func (x *ValidateEIP1271Response) Reset()
- func (x *ValidateEIP1271Response) String() string
Constants ¶
const ( Api_GetRocketPoolNodes_FullMethodName = "/pb.Api/GetRocketPoolNodes" Api_GetOdaoNodes_FullMethodName = "/pb.Api/GetOdaoNodes" Api_GetSoloValidators_FullMethodName = "/pb.Api/GetSoloValidators" Api_ValidateEIP1271_FullMethodName = "/pb.Api/ValidateEIP1271" )
Variables ¶
var Api_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Api", HandlerType: (*ApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRocketPoolNodes", Handler: _Api_GetRocketPoolNodes_Handler, }, { MethodName: "GetOdaoNodes", Handler: _Api_GetOdaoNodes_Handler, }, { MethodName: "GetSoloValidators", Handler: _Api_GetSoloValidators_Handler, }, { MethodName: "ValidateEIP1271", Handler: _Api_ValidateEIP1271_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
Api_ServiceDesc is the grpc.ServiceDesc for Api service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterApiServer ¶
func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)
Types ¶
type ApiClient ¶
type ApiClient interface { GetRocketPoolNodes(ctx context.Context, in *RocketPoolNodesRequest, opts ...grpc.CallOption) (*RocketPoolNodes, error) GetOdaoNodes(ctx context.Context, in *OdaoNodesRequest, opts ...grpc.CallOption) (*OdaoNodes, error) GetSoloValidators(ctx context.Context, in *SoloValidatorsRequest, opts ...grpc.CallOption) (*SoloValidators, error) ValidateEIP1271(ctx context.Context, in *ValidateEIP1271Request, opts ...grpc.CallOption) (*ValidateEIP1271Response, error) }
ApiClient is the client API for Api 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 NewApiClient ¶
func NewApiClient(cc grpc.ClientConnInterface) ApiClient
type ApiServer ¶
type ApiServer interface { GetRocketPoolNodes(context.Context, *RocketPoolNodesRequest) (*RocketPoolNodes, error) GetOdaoNodes(context.Context, *OdaoNodesRequest) (*OdaoNodes, error) GetSoloValidators(context.Context, *SoloValidatorsRequest) (*SoloValidators, error) ValidateEIP1271(context.Context, *ValidateEIP1271Request) (*ValidateEIP1271Response, error) // contains filtered or unexported methods }
ApiServer is the server API for Api service. All implementations must embed UnimplementedApiServer for forward compatibility.
type OdaoNodes ¶
type OdaoNodes struct { NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` // contains filtered or unexported fields }
func (*OdaoNodes) Descriptor
deprecated
func (*OdaoNodes) GetNodeIds ¶
func (*OdaoNodes) ProtoMessage ¶
func (*OdaoNodes) ProtoMessage()
func (*OdaoNodes) ProtoReflect ¶
func (x *OdaoNodes) ProtoReflect() protoreflect.Message
type OdaoNodesRequest ¶
type OdaoNodesRequest struct {
// contains filtered or unexported fields
}
func (*OdaoNodesRequest) Descriptor
deprecated
func (*OdaoNodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use OdaoNodesRequest.ProtoReflect.Descriptor instead.
func (*OdaoNodesRequest) ProtoMessage ¶
func (*OdaoNodesRequest) ProtoMessage()
func (*OdaoNodesRequest) ProtoReflect ¶
func (x *OdaoNodesRequest) ProtoReflect() protoreflect.Message
func (*OdaoNodesRequest) Reset ¶
func (x *OdaoNodesRequest) Reset()
func (*OdaoNodesRequest) String ¶
func (x *OdaoNodesRequest) String() string
type RocketPoolNodes ¶
type RocketPoolNodes struct { NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"` // contains filtered or unexported fields }
func (*RocketPoolNodes) Descriptor
deprecated
func (*RocketPoolNodes) Descriptor() ([]byte, []int)
Deprecated: Use RocketPoolNodes.ProtoReflect.Descriptor instead.
func (*RocketPoolNodes) GetNodeIds ¶
func (x *RocketPoolNodes) GetNodeIds() [][]byte
func (*RocketPoolNodes) ProtoMessage ¶
func (*RocketPoolNodes) ProtoMessage()
func (*RocketPoolNodes) ProtoReflect ¶
func (x *RocketPoolNodes) ProtoReflect() protoreflect.Message
func (*RocketPoolNodes) Reset ¶
func (x *RocketPoolNodes) Reset()
func (*RocketPoolNodes) String ¶
func (x *RocketPoolNodes) String() string
type RocketPoolNodesRequest ¶
type RocketPoolNodesRequest struct {
// contains filtered or unexported fields
}
func (*RocketPoolNodesRequest) Descriptor
deprecated
func (*RocketPoolNodesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RocketPoolNodesRequest.ProtoReflect.Descriptor instead.
func (*RocketPoolNodesRequest) ProtoMessage ¶
func (*RocketPoolNodesRequest) ProtoMessage()
func (*RocketPoolNodesRequest) ProtoReflect ¶
func (x *RocketPoolNodesRequest) ProtoReflect() protoreflect.Message
func (*RocketPoolNodesRequest) Reset ¶
func (x *RocketPoolNodesRequest) Reset()
func (*RocketPoolNodesRequest) String ¶
func (x *RocketPoolNodesRequest) String() string
type SoloValidators ¶
type SoloValidators struct { WithdrawalAddresses [][]byte `protobuf:"bytes,1,rep,name=withdrawal_addresses,json=withdrawalAddresses,proto3" json:"withdrawal_addresses,omitempty"` // contains filtered or unexported fields }
func (*SoloValidators) Descriptor
deprecated
func (*SoloValidators) Descriptor() ([]byte, []int)
Deprecated: Use SoloValidators.ProtoReflect.Descriptor instead.
func (*SoloValidators) GetWithdrawalAddresses ¶
func (x *SoloValidators) GetWithdrawalAddresses() [][]byte
func (*SoloValidators) ProtoMessage ¶
func (*SoloValidators) ProtoMessage()
func (*SoloValidators) ProtoReflect ¶
func (x *SoloValidators) ProtoReflect() protoreflect.Message
func (*SoloValidators) Reset ¶
func (x *SoloValidators) Reset()
func (*SoloValidators) String ¶
func (x *SoloValidators) String() string
type SoloValidatorsRequest ¶
type SoloValidatorsRequest struct {
// contains filtered or unexported fields
}
func (*SoloValidatorsRequest) Descriptor
deprecated
func (*SoloValidatorsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SoloValidatorsRequest.ProtoReflect.Descriptor instead.
func (*SoloValidatorsRequest) ProtoMessage ¶
func (*SoloValidatorsRequest) ProtoMessage()
func (*SoloValidatorsRequest) ProtoReflect ¶
func (x *SoloValidatorsRequest) ProtoReflect() protoreflect.Message
func (*SoloValidatorsRequest) Reset ¶
func (x *SoloValidatorsRequest) Reset()
func (*SoloValidatorsRequest) String ¶
func (x *SoloValidatorsRequest) String() string
type UnimplementedApiServer ¶
type UnimplementedApiServer struct{}
UnimplementedApiServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedApiServer) GetOdaoNodes ¶
func (UnimplementedApiServer) GetOdaoNodes(context.Context, *OdaoNodesRequest) (*OdaoNodes, error)
func (UnimplementedApiServer) GetRocketPoolNodes ¶
func (UnimplementedApiServer) GetRocketPoolNodes(context.Context, *RocketPoolNodesRequest) (*RocketPoolNodes, error)
func (UnimplementedApiServer) GetSoloValidators ¶
func (UnimplementedApiServer) GetSoloValidators(context.Context, *SoloValidatorsRequest) (*SoloValidators, error)
func (UnimplementedApiServer) ValidateEIP1271 ¶
func (UnimplementedApiServer) ValidateEIP1271(context.Context, *ValidateEIP1271Request) (*ValidateEIP1271Response, error)
type UnsafeApiServer ¶
type UnsafeApiServer interface {
// contains filtered or unexported methods
}
UnsafeApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiServer will result in compilation errors.
type ValidateEIP1271Request ¶
type ValidateEIP1271Request struct { DataHash []byte `protobuf:"bytes,1,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*ValidateEIP1271Request) Descriptor
deprecated
func (*ValidateEIP1271Request) Descriptor() ([]byte, []int)
Deprecated: Use ValidateEIP1271Request.ProtoReflect.Descriptor instead.
func (*ValidateEIP1271Request) GetAddress ¶
func (x *ValidateEIP1271Request) GetAddress() []byte
func (*ValidateEIP1271Request) GetDataHash ¶
func (x *ValidateEIP1271Request) GetDataHash() []byte
func (*ValidateEIP1271Request) GetSignature ¶
func (x *ValidateEIP1271Request) GetSignature() []byte
func (*ValidateEIP1271Request) ProtoMessage ¶
func (*ValidateEIP1271Request) ProtoMessage()
func (*ValidateEIP1271Request) ProtoReflect ¶
func (x *ValidateEIP1271Request) ProtoReflect() protoreflect.Message
func (*ValidateEIP1271Request) Reset ¶
func (x *ValidateEIP1271Request) Reset()
func (*ValidateEIP1271Request) String ¶
func (x *ValidateEIP1271Request) String() string
type ValidateEIP1271Response ¶
type ValidateEIP1271Response struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ValidateEIP1271Response) Descriptor
deprecated
func (*ValidateEIP1271Response) Descriptor() ([]byte, []int)
Deprecated: Use ValidateEIP1271Response.ProtoReflect.Descriptor instead.
func (*ValidateEIP1271Response) GetError ¶
func (x *ValidateEIP1271Response) GetError() string
func (*ValidateEIP1271Response) GetValid ¶
func (x *ValidateEIP1271Response) GetValid() bool
func (*ValidateEIP1271Response) ProtoMessage ¶
func (*ValidateEIP1271Response) ProtoMessage()
func (*ValidateEIP1271Response) ProtoReflect ¶
func (x *ValidateEIP1271Response) ProtoReflect() protoreflect.Message
func (*ValidateEIP1271Response) Reset ¶
func (x *ValidateEIP1271Response) Reset()
func (*ValidateEIP1271Response) String ¶
func (x *ValidateEIP1271Response) String() string