Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_index_slashing_rpc_rpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRPCServer ¶
Types ¶
type GetReply ¶
type GetReply struct { Index *Index `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*GetReply) Descriptor
deprecated
func (*GetReply) ProtoMessage ¶
func (*GetReply) ProtoMessage()
func (*GetReply) ProtoReflect ¶
func (x *GetReply) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct {
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type Index ¶
type Index struct { TipSetKey string `protobuf:"bytes,1,opt,name=tipSetKey,proto3" json:"tipSetKey,omitempty"` Miners map[string]*Slashes `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Index) Descriptor
deprecated
func (*Index) GetTipSetKey ¶
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) ProtoReflect ¶
func (x *Index) ProtoReflect() protoreflect.Message
type RPC ¶
type RPC struct { UnimplementedRPCServer // contains filtered or unexported fields }
RPC implements the gprc service
type RPCClient ¶
type RPCClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
}
RPCClient is the client API for RPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRPCClient ¶
func NewRPCClient(cc grpc.ClientConnInterface) RPCClient
type RPCServer ¶
type RPCServer interface {
Get(context.Context, *GetRequest) (*GetReply, error)
}
RPCServer is the server API for RPC service.
type Slashes ¶
type Slashes struct { Epochs []uint64 `protobuf:"varint,1,rep,packed,name=epochs,proto3" json:"epochs,omitempty"` // contains filtered or unexported fields }
func (*Slashes) Descriptor
deprecated
func (*Slashes) ProtoMessage ¶
func (*Slashes) ProtoMessage()
func (*Slashes) ProtoReflect ¶
func (x *Slashes) ProtoReflect() protoreflect.Message
type UnimplementedRPCServer ¶
type UnimplementedRPCServer struct { }
UnimplementedRPCServer can be embedded to have forward compatible implementations.
func (*UnimplementedRPCServer) Get ¶
func (*UnimplementedRPCServer) Get(context.Context, *GetRequest) (*GetReply, error)
Click to show internal directories.
Click to hide internal directories.