filecoin_reputation_pb

package
v0.0.0-...-be0f657 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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) Descriptor() ([]byte, []int)

func (*Index) GetMiners

func (m *Index) GetMiners() map[string]*Slashes

func (*Index) GetTipSetKey

func (m *Index) GetTipSetKey() string

func (*Index) ProtoMessage

func (*Index) ProtoMessage()

func (*Index) Reset

func (m *Index) Reset()

func (*Index) String

func (m *Index) String() string

func (*Index) XXX_DiscardUnknown

func (m *Index) XXX_DiscardUnknown()

func (*Index) XXX_Marshal

func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Index) XXX_Merge

func (m *Index) XXX_Merge(src proto.Message)

func (*Index) XXX_Size

func (m *Index) XXX_Size() int

func (*Index) XXX_Unmarshal

func (m *Index) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Slashes) GetEpochs

func (m *Slashes) GetEpochs() []uint64

func (*Slashes) ProtoMessage

func (*Slashes) ProtoMessage()

func (*Slashes) Reset

func (m *Slashes) Reset()

func (*Slashes) String

func (m *Slashes) String() string

func (*Slashes) XXX_DiscardUnknown

func (m *Slashes) XXX_DiscardUnknown()

func (*Slashes) XXX_Marshal

func (m *Slashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Slashes) XXX_Merge

func (m *Slashes) XXX_Merge(src proto.Message)

func (*Slashes) XXX_Size

func (m *Slashes) XXX_Size() int

func (*Slashes) XXX_Unmarshal

func (m *Slashes) XXX_Unmarshal(b []byte) error

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedAPIServer) AddSource

func (*UnimplementedAPIServer) GetTopMiners

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL