Documentation
¶
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type AddSourceReply
- func (*AddSourceReply) Descriptor() ([]byte, []int)
- func (*AddSourceReply) ProtoMessage()
- func (m *AddSourceReply) Reset()
- func (m *AddSourceReply) String() string
- func (m *AddSourceReply) XXX_DiscardUnknown()
- func (m *AddSourceReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddSourceReply) XXX_Merge(src proto.Message)
- func (m *AddSourceReply) XXX_Size() int
- func (m *AddSourceReply) XXX_Unmarshal(b []byte) error
- type AddSourceRequest
- func (*AddSourceRequest) Descriptor() ([]byte, []int)
- func (m *AddSourceRequest) GetId() string
- func (m *AddSourceRequest) GetMaddr() string
- func (*AddSourceRequest) ProtoMessage()
- func (m *AddSourceRequest) Reset()
- func (m *AddSourceRequest) String() string
- func (m *AddSourceRequest) XXX_DiscardUnknown()
- func (m *AddSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddSourceRequest) XXX_Merge(src proto.Message)
- func (m *AddSourceRequest) XXX_Size() int
- func (m *AddSourceRequest) XXX_Unmarshal(b []byte) error
- type GetTopMinersReply
- func (*GetTopMinersReply) Descriptor() ([]byte, []int)
- func (m *GetTopMinersReply) GetTopMiners() []*MinerScore
- func (*GetTopMinersReply) ProtoMessage()
- func (m *GetTopMinersReply) Reset()
- func (m *GetTopMinersReply) String() string
- func (m *GetTopMinersReply) XXX_DiscardUnknown()
- func (m *GetTopMinersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTopMinersReply) XXX_Merge(src proto.Message)
- func (m *GetTopMinersReply) XXX_Size() int
- func (m *GetTopMinersReply) XXX_Unmarshal(b []byte) error
- type GetTopMinersRequest
- func (*GetTopMinersRequest) Descriptor() ([]byte, []int)
- func (m *GetTopMinersRequest) GetLimit() int32
- func (*GetTopMinersRequest) ProtoMessage()
- func (m *GetTopMinersRequest) Reset()
- func (m *GetTopMinersRequest) String() string
- func (m *GetTopMinersRequest) XXX_DiscardUnknown()
- func (m *GetTopMinersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTopMinersRequest) XXX_Merge(src proto.Message)
- func (m *GetTopMinersRequest) XXX_Size() int
- func (m *GetTopMinersRequest) XXX_Unmarshal(b []byte) error
- type Index
- func (*Index) Descriptor() ([]byte, []int)
- func (m *Index) GetMiners() map[string]*Slashes
- func (m *Index) GetTipSetKey() string
- func (*Index) ProtoMessage()
- func (m *Index) Reset()
- func (m *Index) String() string
- func (m *Index) XXX_DiscardUnknown()
- func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Index) XXX_Merge(src proto.Message)
- func (m *Index) XXX_Size() int
- func (m *Index) XXX_Unmarshal(b []byte) error
- type MinerScore
- func (*MinerScore) Descriptor() ([]byte, []int)
- func (m *MinerScore) GetAddr() string
- func (m *MinerScore) GetScore() int32
- func (*MinerScore) ProtoMessage()
- func (m *MinerScore) Reset()
- func (m *MinerScore) String() string
- func (m *MinerScore) XXX_DiscardUnknown()
- func (m *MinerScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinerScore) XXX_Merge(src proto.Message)
- func (m *MinerScore) XXX_Size() int
- func (m *MinerScore) XXX_Unmarshal(b []byte) error
- type Slashes
- func (*Slashes) Descriptor() ([]byte, []int)
- func (m *Slashes) GetEpochs() []uint64
- func (*Slashes) ProtoMessage()
- func (m *Slashes) Reset()
- func (m *Slashes) String() string
- func (m *Slashes) XXX_DiscardUnknown()
- func (m *Slashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Slashes) XXX_Merge(src proto.Message)
- func (m *Slashes) XXX_Size() int
- func (m *Slashes) XXX_Unmarshal(b []byte) error
- type UnimplementedAPIServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { AddSource(ctx context.Context, in *AddSourceRequest, opts ...grpc.CallOption) (*AddSourceReply, error) GetTopMiners(ctx context.Context, in *GetTopMinersRequest, opts ...grpc.CallOption) (*GetTopMinersReply, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { AddSource(context.Context, *AddSourceRequest) (*AddSourceReply, error) GetTopMiners(context.Context, *GetTopMinersRequest) (*GetTopMinersReply, error) }
APIServer is the server API for API service.
type AddSourceReply ¶
type AddSourceReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddSourceReply) Descriptor ¶
func (*AddSourceReply) Descriptor() ([]byte, []int)
func (*AddSourceReply) ProtoMessage ¶
func (*AddSourceReply) ProtoMessage()
func (*AddSourceReply) Reset ¶
func (m *AddSourceReply) Reset()
func (*AddSourceReply) String ¶
func (m *AddSourceReply) String() string
func (*AddSourceReply) XXX_DiscardUnknown ¶
func (m *AddSourceReply) XXX_DiscardUnknown()
func (*AddSourceReply) XXX_Marshal ¶
func (m *AddSourceReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddSourceReply) XXX_Merge ¶
func (m *AddSourceReply) XXX_Merge(src proto.Message)
func (*AddSourceReply) XXX_Size ¶
func (m *AddSourceReply) XXX_Size() int
func (*AddSourceReply) XXX_Unmarshal ¶
func (m *AddSourceReply) XXX_Unmarshal(b []byte) error
type AddSourceRequest ¶
type AddSourceRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Maddr string `protobuf:"bytes,2,opt,name=maddr,proto3" json:"maddr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddSourceRequest) Descriptor ¶
func (*AddSourceRequest) Descriptor() ([]byte, []int)
func (*AddSourceRequest) GetId ¶
func (m *AddSourceRequest) GetId() string
func (*AddSourceRequest) GetMaddr ¶
func (m *AddSourceRequest) GetMaddr() string
func (*AddSourceRequest) ProtoMessage ¶
func (*AddSourceRequest) ProtoMessage()
func (*AddSourceRequest) Reset ¶
func (m *AddSourceRequest) Reset()
func (*AddSourceRequest) String ¶
func (m *AddSourceRequest) String() string
func (*AddSourceRequest) XXX_DiscardUnknown ¶
func (m *AddSourceRequest) XXX_DiscardUnknown()
func (*AddSourceRequest) XXX_Marshal ¶
func (m *AddSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddSourceRequest) XXX_Merge ¶
func (m *AddSourceRequest) XXX_Merge(src proto.Message)
func (*AddSourceRequest) XXX_Size ¶
func (m *AddSourceRequest) XXX_Size() int
func (*AddSourceRequest) XXX_Unmarshal ¶
func (m *AddSourceRequest) XXX_Unmarshal(b []byte) error
type GetTopMinersReply ¶
type GetTopMinersReply struct { TopMiners []*MinerScore `protobuf:"bytes,1,rep,name=topMiners,proto3" json:"topMiners,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTopMinersReply) Descriptor ¶
func (*GetTopMinersReply) Descriptor() ([]byte, []int)
func (*GetTopMinersReply) GetTopMiners ¶
func (m *GetTopMinersReply) GetTopMiners() []*MinerScore
func (*GetTopMinersReply) ProtoMessage ¶
func (*GetTopMinersReply) ProtoMessage()
func (*GetTopMinersReply) Reset ¶
func (m *GetTopMinersReply) Reset()
func (*GetTopMinersReply) String ¶
func (m *GetTopMinersReply) String() string
func (*GetTopMinersReply) XXX_DiscardUnknown ¶
func (m *GetTopMinersReply) XXX_DiscardUnknown()
func (*GetTopMinersReply) XXX_Marshal ¶
func (m *GetTopMinersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTopMinersReply) XXX_Merge ¶
func (m *GetTopMinersReply) XXX_Merge(src proto.Message)
func (*GetTopMinersReply) XXX_Size ¶
func (m *GetTopMinersReply) XXX_Size() int
func (*GetTopMinersReply) XXX_Unmarshal ¶
func (m *GetTopMinersReply) XXX_Unmarshal(b []byte) error
type GetTopMinersRequest ¶
type GetTopMinersRequest struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTopMinersRequest) Descriptor ¶
func (*GetTopMinersRequest) Descriptor() ([]byte, []int)
func (*GetTopMinersRequest) GetLimit ¶
func (m *GetTopMinersRequest) GetLimit() int32
func (*GetTopMinersRequest) ProtoMessage ¶
func (*GetTopMinersRequest) ProtoMessage()
func (*GetTopMinersRequest) Reset ¶
func (m *GetTopMinersRequest) Reset()
func (*GetTopMinersRequest) String ¶
func (m *GetTopMinersRequest) String() string
func (*GetTopMinersRequest) XXX_DiscardUnknown ¶
func (m *GetTopMinersRequest) XXX_DiscardUnknown()
func (*GetTopMinersRequest) XXX_Marshal ¶
func (m *GetTopMinersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTopMinersRequest) XXX_Merge ¶
func (m *GetTopMinersRequest) XXX_Merge(src proto.Message)
func (*GetTopMinersRequest) XXX_Size ¶
func (m *GetTopMinersRequest) XXX_Size() int
func (*GetTopMinersRequest) XXX_Unmarshal ¶
func (m *GetTopMinersRequest) XXX_Unmarshal(b []byte) error
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 */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Index) Descriptor ¶
func (*Index) GetTipSetKey ¶
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) XXX_DiscardUnknown ¶
func (m *Index) XXX_DiscardUnknown()
func (*Index) XXX_Marshal ¶
func (*Index) XXX_Unmarshal ¶
type MinerScore ¶
type MinerScore struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Score int32 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MinerScore) Descriptor ¶
func (*MinerScore) Descriptor() ([]byte, []int)
func (*MinerScore) GetAddr ¶
func (m *MinerScore) GetAddr() string
func (*MinerScore) GetScore ¶
func (m *MinerScore) GetScore() int32
func (*MinerScore) ProtoMessage ¶
func (*MinerScore) ProtoMessage()
func (*MinerScore) Reset ¶
func (m *MinerScore) Reset()
func (*MinerScore) String ¶
func (m *MinerScore) String() string
func (*MinerScore) XXX_DiscardUnknown ¶
func (m *MinerScore) XXX_DiscardUnknown()
func (*MinerScore) XXX_Marshal ¶
func (m *MinerScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MinerScore) XXX_Merge ¶
func (m *MinerScore) XXX_Merge(src proto.Message)
func (*MinerScore) XXX_Size ¶
func (m *MinerScore) XXX_Size() int
func (*MinerScore) XXX_Unmarshal ¶
func (m *MinerScore) XXX_Unmarshal(b []byte) error
type Slashes ¶
type Slashes struct { Epochs []uint64 `protobuf:"varint,1,rep,packed,name=epochs,proto3" json:"epochs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Slashes) Descriptor ¶
func (*Slashes) ProtoMessage ¶
func (*Slashes) ProtoMessage()
func (*Slashes) XXX_DiscardUnknown ¶
func (m *Slashes) XXX_DiscardUnknown()
func (*Slashes) XXX_Marshal ¶
func (*Slashes) XXX_Unmarshal ¶
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) AddSource ¶
func (*UnimplementedAPIServer) AddSource(ctx context.Context, req *AddSourceRequest) (*AddSourceReply, error)
func (*UnimplementedAPIServer) GetTopMiners ¶
func (*UnimplementedAPIServer) GetTopMiners(ctx context.Context, req *GetTopMinersRequest) (*GetTopMinersReply, error)
Click to show internal directories.
Click to hide internal directories.