467 lines
17 KiB
Go
467 lines
17 KiB
Go
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
||
|
// source: reputation.proto
|
||
|
|
||
|
package multinodepb
|
||
|
|
||
|
import (
|
||
|
context "context"
|
||
|
fmt "fmt"
|
||
|
math "math"
|
||
|
time "time"
|
||
|
|
||
|
proto "github.com/gogo/protobuf/proto"
|
||
|
|
||
|
drpc "storj.io/drpc"
|
||
|
)
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
var _ = time.Kitchen
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
type ReputationStats struct {
|
||
|
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
||
|
SuccessCount int64 `protobuf:"varint,2,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
|
||
|
ReputationAlpha float64 `protobuf:"fixed64,3,opt,name=reputation_alpha,json=reputationAlpha,proto3" json:"reputation_alpha,omitempty"`
|
||
|
ReputationBeta float64 `protobuf:"fixed64,4,opt,name=reputation_beta,json=reputationBeta,proto3" json:"reputation_beta,omitempty"`
|
||
|
ReputationScore float64 `protobuf:"fixed64,5,opt,name=reputation_score,json=reputationScore,proto3" json:"reputation_score,omitempty"`
|
||
|
UnknownReputationAlpha float64 `protobuf:"fixed64,6,opt,name=unknown_reputation_alpha,json=unknownReputationAlpha,proto3" json:"unknown_reputation_alpha,omitempty"`
|
||
|
UnknownReputationBeta float64 `protobuf:"fixed64,7,opt,name=unknown_reputation_beta,json=unknownReputationBeta,proto3" json:"unknown_reputation_beta,omitempty"`
|
||
|
UnknownReputationScore float64 `protobuf:"fixed64,8,opt,name=unknown_reputation_score,json=unknownReputationScore,proto3" json:"unknown_reputation_score,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) Reset() { *m = ReputationStats{} }
|
||
|
func (m *ReputationStats) String() string { return proto.CompactTextString(m) }
|
||
|
func (*ReputationStats) ProtoMessage() {}
|
||
|
func (*ReputationStats) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_b35a2508345eddf0, []int{0}
|
||
|
}
|
||
|
func (m *ReputationStats) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_ReputationStats.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *ReputationStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_ReputationStats.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *ReputationStats) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_ReputationStats.Merge(m, src)
|
||
|
}
|
||
|
func (m *ReputationStats) XXX_Size() int {
|
||
|
return xxx_messageInfo_ReputationStats.Size(m)
|
||
|
}
|
||
|
func (m *ReputationStats) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_ReputationStats.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_ReputationStats proto.InternalMessageInfo
|
||
|
|
||
|
func (m *ReputationStats) GetTotalCount() int64 {
|
||
|
if m != nil {
|
||
|
return m.TotalCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) GetSuccessCount() int64 {
|
||
|
if m != nil {
|
||
|
return m.SuccessCount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) GetReputationAlpha() float64 {
|
||
|
if m != nil {
|
||
|
return m.ReputationAlpha
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) GetReputationBeta() float64 {
|
||
|
if m != nil {
|
||
|
return m.ReputationBeta
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) GetReputationScore() float64 {
|
||
|
if m != nil {
|
||
|
return m.ReputationScore
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) GetUnknownReputationAlpha() float64 {
|
||
|
if m != nil {
|
||
|
return m.UnknownReputationAlpha
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) GetUnknownReputationBeta() float64 {
|
||
|
if m != nil {
|
||
|
return m.UnknownReputationBeta
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *ReputationStats) GetUnknownReputationScore() float64 {
|
||
|
if m != nil {
|
||
|
return m.UnknownReputationScore
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
type GetBySatelliteIDRequest struct {
|
||
|
SatelliteId NodeID `protobuf:"bytes,1,opt,name=satellite_id,json=satelliteId,proto3,customtype=NodeID" json:"satellite_id"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDRequest) Reset() { *m = GetBySatelliteIDRequest{} }
|
||
|
func (m *GetBySatelliteIDRequest) String() string { return proto.CompactTextString(m) }
|
||
|
func (*GetBySatelliteIDRequest) ProtoMessage() {}
|
||
|
func (*GetBySatelliteIDRequest) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_b35a2508345eddf0, []int{1}
|
||
|
}
|
||
|
func (m *GetBySatelliteIDRequest) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_GetBySatelliteIDRequest.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_GetBySatelliteIDRequest.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDRequest) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_GetBySatelliteIDRequest.Merge(m, src)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDRequest) XXX_Size() int {
|
||
|
return xxx_messageInfo_GetBySatelliteIDRequest.Size(m)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDRequest) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_GetBySatelliteIDRequest.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_GetBySatelliteIDRequest proto.InternalMessageInfo
|
||
|
|
||
|
type GetBySatelliteIDResponse struct {
|
||
|
AuditCheck *ReputationStats `protobuf:"bytes,1,opt,name=audit_check,json=auditCheck,proto3" json:"audit_check,omitempty"`
|
||
|
Disqualified *time.Time `protobuf:"bytes,2,opt,name=disqualified,proto3,stdtime" json:"disqualified,omitempty"`
|
||
|
Suspended *time.Time `protobuf:"bytes,3,opt,name=suspended,proto3,stdtime" json:"suspended,omitempty"`
|
||
|
JoinedAt time.Time `protobuf:"bytes,4,opt,name=joined_at,json=joinedAt,proto3,stdtime" json:"joined_at"`
|
||
|
OfflineSuspended *time.Time `protobuf:"bytes,5,opt,name=offline_suspended,json=offlineSuspended,proto3,stdtime" json:"offline_suspended,omitempty"`
|
||
|
OnlineScore float64 `protobuf:"fixed64,6,opt,name=online_score,json=onlineScore,proto3" json:"online_score,omitempty"`
|
||
|
OfflineUnderReview *time.Time `protobuf:"bytes,7,opt,name=offline_under_review,json=offlineUnderReview,proto3,stdtime" json:"offline_under_review,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) Reset() { *m = GetBySatelliteIDResponse{} }
|
||
|
func (m *GetBySatelliteIDResponse) String() string { return proto.CompactTextString(m) }
|
||
|
func (*GetBySatelliteIDResponse) ProtoMessage() {}
|
||
|
func (*GetBySatelliteIDResponse) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_b35a2508345eddf0, []int{2}
|
||
|
}
|
||
|
func (m *GetBySatelliteIDResponse) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_GetBySatelliteIDResponse.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_GetBySatelliteIDResponse.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDResponse) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_GetBySatelliteIDResponse.Merge(m, src)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDResponse) XXX_Size() int {
|
||
|
return xxx_messageInfo_GetBySatelliteIDResponse.Size(m)
|
||
|
}
|
||
|
func (m *GetBySatelliteIDResponse) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_GetBySatelliteIDResponse.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_GetBySatelliteIDResponse proto.InternalMessageInfo
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) GetAuditCheck() *ReputationStats {
|
||
|
if m != nil {
|
||
|
return m.AuditCheck
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) GetDisqualified() *time.Time {
|
||
|
if m != nil {
|
||
|
return m.Disqualified
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) GetSuspended() *time.Time {
|
||
|
if m != nil {
|
||
|
return m.Suspended
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) GetJoinedAt() time.Time {
|
||
|
if m != nil {
|
||
|
return m.JoinedAt
|
||
|
}
|
||
|
return time.Time{}
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) GetOfflineSuspended() *time.Time {
|
||
|
if m != nil {
|
||
|
return m.OfflineSuspended
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) GetOnlineScore() float64 {
|
||
|
if m != nil {
|
||
|
return m.OnlineScore
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *GetBySatelliteIDResponse) GetOfflineUnderReview() *time.Time {
|
||
|
if m != nil {
|
||
|
return m.OfflineUnderReview
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type AllRequest struct {
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *AllRequest) Reset() { *m = AllRequest{} }
|
||
|
func (m *AllRequest) String() string { return proto.CompactTextString(m) }
|
||
|
func (*AllRequest) ProtoMessage() {}
|
||
|
func (*AllRequest) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_b35a2508345eddf0, []int{3}
|
||
|
}
|
||
|
func (m *AllRequest) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_AllRequest.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *AllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_AllRequest.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *AllRequest) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_AllRequest.Merge(m, src)
|
||
|
}
|
||
|
func (m *AllRequest) XXX_Size() int {
|
||
|
return xxx_messageInfo_AllRequest.Size(m)
|
||
|
}
|
||
|
func (m *AllRequest) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_AllRequest.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_AllRequest proto.InternalMessageInfo
|
||
|
|
||
|
type AllResponse struct {
|
||
|
Reputation []*GetBySatelliteIDResponse `protobuf:"bytes,1,rep,name=reputation,proto3" json:"reputation,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *AllResponse) Reset() { *m = AllResponse{} }
|
||
|
func (m *AllResponse) String() string { return proto.CompactTextString(m) }
|
||
|
func (*AllResponse) ProtoMessage() {}
|
||
|
func (*AllResponse) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_b35a2508345eddf0, []int{4}
|
||
|
}
|
||
|
func (m *AllResponse) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_AllResponse.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *AllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_AllResponse.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *AllResponse) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_AllResponse.Merge(m, src)
|
||
|
}
|
||
|
func (m *AllResponse) XXX_Size() int {
|
||
|
return xxx_messageInfo_AllResponse.Size(m)
|
||
|
}
|
||
|
func (m *AllResponse) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_AllResponse.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_AllResponse proto.InternalMessageInfo
|
||
|
|
||
|
func (m *AllResponse) GetReputation() []*GetBySatelliteIDResponse {
|
||
|
if m != nil {
|
||
|
return m.Reputation
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*ReputationStats)(nil), "reputation.ReputationStats")
|
||
|
proto.RegisterType((*GetBySatelliteIDRequest)(nil), "reputation.GetBySatelliteIDRequest")
|
||
|
proto.RegisterType((*GetBySatelliteIDResponse)(nil), "reputation.GetBySatelliteIDResponse")
|
||
|
proto.RegisterType((*AllRequest)(nil), "reputation.AllRequest")
|
||
|
proto.RegisterType((*AllResponse)(nil), "reputation.AllResponse")
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("reputation.proto", fileDescriptor_b35a2508345eddf0) }
|
||
|
|
||
|
var fileDescriptor_b35a2508345eddf0 = []byte{
|
||
|
// 584 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xc1, 0x6e, 0xd3, 0x40,
|
||
|
0x14, 0xac, 0x31, 0x2d, 0xed, 0xb3, 0x69, 0xcb, 0x0a, 0x5a, 0xcb, 0x20, 0xb9, 0xa4, 0x48, 0x84,
|
||
|
0x8b, 0x23, 0x82, 0x54, 0x71, 0xe0, 0x12, 0xb7, 0x12, 0x54, 0x42, 0x48, 0x38, 0xc0, 0x01, 0x09,
|
||
|
0x59, 0x1b, 0x7b, 0x93, 0x6e, 0xbb, 0xd9, 0x75, 0xbd, 0x6b, 0x2a, 0xae, 0x7c, 0x01, 0xff, 0xc0,
|
||
|
0xcf, 0xf4, 0x1b, 0x38, 0x84, 0xcf, 0xe0, 0x8a, 0xbc, 0x76, 0x62, 0x93, 0xb4, 0x10, 0x6e, 0xde,
|
||
|
0xf1, 0xcc, 0xbc, 0xb1, 0xdf, 0x68, 0x61, 0x3b, 0x23, 0x69, 0xae, 0xb0, 0xa2, 0x82, 0xfb, 0x69,
|
||
|
0x26, 0x94, 0x40, 0x50, 0x23, 0x2e, 0x8c, 0xc4, 0x48, 0x94, 0xb8, 0xeb, 0x8d, 0x84, 0x18, 0x31,
|
||
|
0xd2, 0xd1, 0xa7, 0x41, 0x3e, 0xec, 0x28, 0x3a, 0x26, 0x52, 0xe1, 0x71, 0x5a, 0x12, 0x5a,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 0xf7, 0x85, 0x41, 0xa8, 0xf5, 0x2d, 0x1b, 0xa0,
|
||
|
0xc7, 0x58, 0x55, 0x9d, 0x56, 0x1f, 0x2c, 0x7d, 0xaa, 0x36, 0x7f, 0x04, 0x8d, 0x4b, 0xc2, 0x31,
|
||
|
0xf6, 0xcc, 0xb6, 0xd5, 0x7d, 0xd4, 0x5c, 0xfc, 0x75, 0x9d, 0x09, 0x1b, 0xba, 0xee, 0x77, 0x03,
|
||
|
0xa0, 0x6e, 0x08, 0xfa, 0x04, 0xdb, 0xf3, 0x32, 0xb4, 0xff, 0x77, 0x53, 0x1d, 0xce, 0x5d, 0x6a,
|
||
|
0x32, 0x3a, 0x00, 0xb3, 0xc7, 0x18, 0xda, 0x69, 0x92, 0xeb, 0x2f, 0x74, 0x77, 0x17, 0xf0, 0x52,
|
||
|
0x17, 0x3c, 0xf8, 0xe8, 0x4a, 0x25, 0xb2, 0x53, 0x9f, 0x8a, 0x8e, 0x7e, 0xe8, 0x8c, 0x73, 0xa6,
|
||
|
0x28, 0x17, 0x09, 0x49, 0x07, 0x83, 0x35, 0xfd, 0x63, 0x9f, 0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff,
|
||
|
0x13, 0x5c, 0xf1, 0xa4, 0x47, 0x05, 0x00, 0x00,
|
||
|
}
|
||
|
|
||
|
// --- DRPC BEGIN ---
|
||
|
|
||
|
type DRPCReputationClient interface {
|
||
|
DRPCConn() drpc.Conn
|
||
|
|
||
|
GetBySatelliteID(ctx context.Context, in *GetBySatelliteIDRequest) (*GetBySatelliteIDResponse, error)
|
||
|
All(ctx context.Context, in *AllRequest) (*AllResponse, error)
|
||
|
}
|
||
|
|
||
|
type drpcReputationClient struct {
|
||
|
cc drpc.Conn
|
||
|
}
|
||
|
|
||
|
func NewDRPCReputationClient(cc drpc.Conn) DRPCReputationClient {
|
||
|
return &drpcReputationClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *drpcReputationClient) DRPCConn() drpc.Conn { return c.cc }
|
||
|
|
||
|
func (c *drpcReputationClient) GetBySatelliteID(ctx context.Context, in *GetBySatelliteIDRequest) (*GetBySatelliteIDResponse, error) {
|
||
|
out := new(GetBySatelliteIDResponse)
|
||
|
err := c.cc.Invoke(ctx, "/reputation.Reputation/GetBySatelliteID", in, out)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *drpcReputationClient) All(ctx context.Context, in *AllRequest) (*AllResponse, error) {
|
||
|
out := new(AllResponse)
|
||
|
err := c.cc.Invoke(ctx, "/reputation.Reputation/All", in, out)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
type DRPCReputationServer interface {
|
||
|
GetBySatelliteID(context.Context, *GetBySatelliteIDRequest) (*GetBySatelliteIDResponse, error)
|
||
|
All(context.Context, *AllRequest) (*AllResponse, error)
|
||
|
}
|
||
|
|
||
|
type DRPCReputationDescription struct{}
|
||
|
|
||
|
func (DRPCReputationDescription) NumMethods() int { return 2 }
|
||
|
|
||
|
func (DRPCReputationDescription) Method(n int) (string, drpc.Receiver, interface{}, bool) {
|
||
|
switch n {
|
||
|
case 0:
|
||
|
return "/reputation.Reputation/GetBySatelliteID",
|
||
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
||
|
return srv.(DRPCReputationServer).
|
||
|
GetBySatelliteID(
|
||
|
ctx,
|
||
|
in1.(*GetBySatelliteIDRequest),
|
||
|
)
|
||
|
}, DRPCReputationServer.GetBySatelliteID, true
|
||
|
case 1:
|
||
|
return "/reputation.Reputation/All",
|
||
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
||
|
return srv.(DRPCReputationServer).
|
||
|
All(
|
||
|
ctx,
|
||
|
in1.(*AllRequest),
|
||
|
)
|
||
|
}, DRPCReputationServer.All, true
|
||
|
default:
|
||
|
return "", nil, nil, false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func DRPCRegisterReputation(mux drpc.Mux, impl DRPCReputationServer) error {
|
||
|
return mux.Register(impl, DRPCReputationDescription{})
|
||
|
}
|
||
|
|
||
|
type DRPCReputation_GetBySatelliteIDStream interface {
|
||
|
drpc.Stream
|
||
|
SendAndClose(*GetBySatelliteIDResponse) error
|
||
|
}
|
||
|
|
||
|
type drpcReputationGetBySatelliteIDStream struct {
|
||
|
drpc.Stream
|
||
|
}
|
||
|
|
||
|
func (x *drpcReputationGetBySatelliteIDStream) SendAndClose(m *GetBySatelliteIDResponse) error {
|
||
|
if err := x.MsgSend(m); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return x.CloseSend()
|
||
|
}
|
||
|
|
||
|
type DRPCReputation_AllStream interface {
|
||
|
drpc.Stream
|
||
|
SendAndClose(*AllResponse) error
|
||
|
}
|
||
|
|
||
|
type drpcReputationAllStream struct {
|
||
|
drpc.Stream
|
||
|
}
|
||
|
|
||
|
func (x *drpcReputationAllStream) SendAndClose(m *AllResponse) error {
|
||
|
if err := x.MsgSend(m); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return x.CloseSend()
|
||
|
}
|
||
|
|
||
|
// --- DRPC END ---
|