guard

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 14 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGuard        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGuard          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGuard = fmt.Errorf("proto: unexpected end of group")
)
View Source
var CancelContractRequest_CancelReason_name = map[int32]string{
	0: "HOST_REQUEST",
	1: "DOWNLOAD_FAIL",
	2: "RENTER_REQUEST",
	3: "OTHER",
}
View Source
var CancelContractRequest_CancelReason_value = map[string]int32{
	"HOST_REQUEST":   0,
	"DOWNLOAD_FAIL":  1,
	"RENTER_REQUEST": 2,
	"OTHER":          3,
}
View Source
var ContractMeta_Schedule_name = map[int32]string{
	0: "MONTHLY",
	1: "QUARTERLY",
	2: "ANNUALLY",
}
View Source
var ContractMeta_Schedule_value = map[string]int32{
	"MONTHLY":   0,
	"QUARTERLY": 1,
	"ANNUALLY":  2,
}
View Source
var Contract_ContractState_name = map[int32]string{
	0:  "DRAFT",
	1:  "SIGNED",
	2:  "UPLOADED",
	3:  "LOST",
	4:  "CANCELED",
	5:  "CLOSED",
	6:  "RENEWED",
	7:  "OBSOLETE",
	8:  "WARN",
	9:  "DRAFT_WARN",
	10: "READY_CHALLENGE",
	11: "RECREATED",
	12: "REQUEST_CHALLENGE",
}
View Source
var Contract_ContractState_value = map[string]int32{
	"DRAFT":             0,
	"SIGNED":            1,
	"UPLOADED":          2,
	"LOST":              3,
	"CANCELED":          4,
	"CLOSED":            5,
	"RENEWED":           6,
	"OBSOLETE":          7,
	"WARN":              8,
	"DRAFT_WARN":        9,
	"READY_CHALLENGE":   10,
	"RECREATED":         11,
	"REQUEST_CHALLENGE": 12,
}
View Source
var FileStoreStatus_MetaState_name = map[int32]string{
	0: "DRAFT",
	1: "UPLOADING",
	2: "RUNNING",
	3: "PARTIAL_LOST",
	4: "LOST",
	5: "DONE",
	6: "CANCELED",
	7: "RECREATED",
}
View Source
var FileStoreStatus_MetaState_value = map[string]int32{
	"DRAFT":        0,
	"UPLOADING":    1,
	"RUNNING":      2,
	"PARTIAL_LOST": 3,
	"LOST":         4,
	"DONE":         5,
	"CANCELED":     6,
	"RECREATED":    7,
}
View Source
var FileStoreStatus_RentalState_name = map[int32]string{
	0: "NEW",
	1: "PARTIAL_NEW",
	2: "EXPIRED",
	3: "RENEW",
	4: "RECREATE",
}
View Source
var FileStoreStatus_RentalState_value = map[string]int32{
	"NEW":         0,
	"PARTIAL_NEW": 1,
	"EXPIRED":     2,
	"RENEW":       3,
	"RECREATE":    4,
}
View Source
var ListHostContractsRequest_SelectState_name = map[int32]string{
	0: "ALL",
	1: "ACTIVE",
	2: "CLOSED",
}
View Source
var ListHostContractsRequest_SelectState_value = map[string]int32{
	"ALL":    0,
	"ACTIVE": 1,
	"CLOSED": 2,
}
View Source
var RepairContractResponse_ContractResponseStatus_name = map[int32]string{
	0: "BOTH_SIGNED",
	1: "WAIT_LIST",
	2: "REJECTED",
}
View Source
var RepairContractResponse_ContractResponseStatus_value = map[string]int32{
	"BOTH_SIGNED": 0,
	"WAIT_LIST":   1,
	"REJECTED":    2,
}
View Source
var ResponseCode_name = map[int32]string{
	0:  "SUCCESS",
	1:  "SIGNATURE_FORMAT_ERROR",
	2:  "COMPUTE_ADDRESS_ERROR",
	20: "OTHER_ERROR",
}
View Source
var ResponseCode_value = map[string]int32{
	"SUCCESS":                0,
	"SIGNATURE_FORMAT_ERROR": 1,
	"COMPUTE_ADDRESS_ERROR":  2,
	"OTHER_ERROR":            20,
}
View Source
var ResponseRepairContracts_RepairStat_name = map[int32]string{
	0: "CONTRACT_READY",
	1: "DOWNLOAD_NOT_DONE",
	2: "REQUEST_AGAIN",
	3: "CONTRACT_CLOSED",
}
View Source
var ResponseRepairContracts_RepairStat_value = map[string]int32{
	"CONTRACT_READY":    0,
	"DOWNLOAD_NOT_DONE": 1,
	"REQUEST_AGAIN":     2,
	"CONTRACT_CLOSED":   3,
}

Functions

func RegisterGuardServiceServer

func RegisterGuardServiceServer(s *grpc.Server, srv GuardServiceServer)

Types

type AdminQuery

type AdminQuery struct {
	RequesterPid         string    `protobuf:"bytes,1,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	QueryDate            time.Time `protobuf:"bytes,2,opt,name=query_date,json=queryDate,proto3,stdtime" json:"query_date" pg:"query_date"`
	QueryCount           int32     `protobuf:"varint,3,opt,name=query_count,json=queryCount,proto3" json:"query_count,omitempty" pg:"query_count"`
	RequestTime          time.Time `protobuf:"bytes,4,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time" pg:"request_time"`
	Signature            []byte    `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedAdminQuery

func NewPopulatedAdminQuery(r randyGuard, easy bool) *AdminQuery

func (*AdminQuery) Descriptor

func (*AdminQuery) Descriptor() ([]byte, []int)

func (*AdminQuery) GetQueryCount

func (m *AdminQuery) GetQueryCount() int32

func (*AdminQuery) GetQueryDate

func (m *AdminQuery) GetQueryDate() time.Time

func (*AdminQuery) GetRequestTime

func (m *AdminQuery) GetRequestTime() time.Time

func (*AdminQuery) GetRequesterPid

func (m *AdminQuery) GetRequesterPid() string

func (*AdminQuery) GetSignature

func (m *AdminQuery) GetSignature() []byte

func (*AdminQuery) Marshal

func (m *AdminQuery) Marshal() (dAtA []byte, err error)

func (*AdminQuery) MarshalTo

func (m *AdminQuery) MarshalTo(dAtA []byte) (int, error)

func (*AdminQuery) MarshalToSizedBuffer

func (m *AdminQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AdminQuery) ProtoMessage

func (*AdminQuery) ProtoMessage()

func (*AdminQuery) Reset

func (m *AdminQuery) Reset()

func (*AdminQuery) Size

func (m *AdminQuery) Size() (n int)

func (*AdminQuery) String

func (m *AdminQuery) String() string

func (*AdminQuery) Unmarshal

func (m *AdminQuery) Unmarshal(dAtA []byte) error

func (*AdminQuery) XXX_DiscardUnknown

func (m *AdminQuery) XXX_DiscardUnknown()

func (*AdminQuery) XXX_Marshal

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

func (*AdminQuery) XXX_Merge

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

func (*AdminQuery) XXX_MessageName

func (*AdminQuery) XXX_MessageName() string

func (*AdminQuery) XXX_Size

func (m *AdminQuery) XXX_Size() int

func (*AdminQuery) XXX_Unmarshal

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

type CancelContractRequest

type CancelContractRequest struct {
	FileHash             string                             `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardHash            string                             `protobuf:"bytes,2,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	ContractId           string                             `protobuf:"bytes,3,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty" pg:"contract_id"`
	RenterPid            string                             `protobuf:"bytes,4,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	HostPid              string                             `protobuf:"bytes,5,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	Reason               CancelContractRequest_CancelReason `protobuf:"varint,6,opt,name=reason,proto3,enum=guard.CancelContractRequest_CancelReason" json:"reason,omitempty" pg:"reason"`
	SignTime             time.Time                          `protobuf:"bytes,7,opt,name=sign_time,json=signTime,proto3,stdtime" json:"sign_time" pg:"sign_time"`
	Signature            []byte                             `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-" pg:"-"`
	XXX_unrecognized     []byte                             `json:"-" pg:"-"`
	XXX_sizecache        int32                              `json:"-" pg:"-"`
}

func NewPopulatedCancelContractRequest

func NewPopulatedCancelContractRequest(r randyGuard, easy bool) *CancelContractRequest

func (*CancelContractRequest) Descriptor

func (*CancelContractRequest) Descriptor() ([]byte, []int)

func (*CancelContractRequest) GetContractId

func (m *CancelContractRequest) GetContractId() string

func (*CancelContractRequest) GetFileHash

func (m *CancelContractRequest) GetFileHash() string

func (*CancelContractRequest) GetHostPid

func (m *CancelContractRequest) GetHostPid() string

func (*CancelContractRequest) GetReason

func (*CancelContractRequest) GetRenterPid

func (m *CancelContractRequest) GetRenterPid() string

func (*CancelContractRequest) GetShardHash

func (m *CancelContractRequest) GetShardHash() string

func (*CancelContractRequest) GetSignTime

func (m *CancelContractRequest) GetSignTime() time.Time

func (*CancelContractRequest) GetSignature

func (m *CancelContractRequest) GetSignature() []byte

func (*CancelContractRequest) Marshal

func (m *CancelContractRequest) Marshal() (dAtA []byte, err error)

func (*CancelContractRequest) MarshalTo

func (m *CancelContractRequest) MarshalTo(dAtA []byte) (int, error)

func (*CancelContractRequest) MarshalToSizedBuffer

func (m *CancelContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CancelContractRequest) ProtoMessage

func (*CancelContractRequest) ProtoMessage()

func (*CancelContractRequest) Reset

func (m *CancelContractRequest) Reset()

func (*CancelContractRequest) Size

func (m *CancelContractRequest) Size() (n int)

func (*CancelContractRequest) String

func (m *CancelContractRequest) String() string

func (*CancelContractRequest) Unmarshal

func (m *CancelContractRequest) Unmarshal(dAtA []byte) error

func (*CancelContractRequest) XXX_DiscardUnknown

func (m *CancelContractRequest) XXX_DiscardUnknown()

func (*CancelContractRequest) XXX_Marshal

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

func (*CancelContractRequest) XXX_Merge

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

func (*CancelContractRequest) XXX_MessageName

func (*CancelContractRequest) XXX_MessageName() string

func (*CancelContractRequest) XXX_Size

func (m *CancelContractRequest) XXX_Size() int

func (*CancelContractRequest) XXX_Unmarshal

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

type CancelContractRequest_CancelReason

type CancelContractRequest_CancelReason int32
const (
	CancelContractRequest_HOST_REQUEST   CancelContractRequest_CancelReason = 0
	CancelContractRequest_DOWNLOAD_FAIL  CancelContractRequest_CancelReason = 1
	CancelContractRequest_RENTER_REQUEST CancelContractRequest_CancelReason = 2
	CancelContractRequest_OTHER          CancelContractRequest_CancelReason = 3
)

func (CancelContractRequest_CancelReason) EnumDescriptor

func (CancelContractRequest_CancelReason) EnumDescriptor() ([]byte, []int)

func (CancelContractRequest_CancelReason) String

type ChallengeJobRequest

type ChallengeJobRequest struct {
	NodePid              string    `protobuf:"bytes,1,opt,name=node_pid,json=nodePid,proto3" json:"node_pid,omitempty" pg:"node_pid"`
	RequestTime          time.Time `protobuf:"bytes,2,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time" pg:"request_time"`
	Signature            []byte    `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedChallengeJobRequest

func NewPopulatedChallengeJobRequest(r randyGuard, easy bool) *ChallengeJobRequest

func (*ChallengeJobRequest) Descriptor

func (*ChallengeJobRequest) Descriptor() ([]byte, []int)

func (*ChallengeJobRequest) GetNodePid

func (m *ChallengeJobRequest) GetNodePid() string

func (*ChallengeJobRequest) GetRequestTime

func (m *ChallengeJobRequest) GetRequestTime() time.Time

func (*ChallengeJobRequest) GetSignature

func (m *ChallengeJobRequest) GetSignature() []byte

func (*ChallengeJobRequest) Marshal

func (m *ChallengeJobRequest) Marshal() (dAtA []byte, err error)

func (*ChallengeJobRequest) MarshalTo

func (m *ChallengeJobRequest) MarshalTo(dAtA []byte) (int, error)

func (*ChallengeJobRequest) MarshalToSizedBuffer

func (m *ChallengeJobRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChallengeJobRequest) ProtoMessage

func (*ChallengeJobRequest) ProtoMessage()

func (*ChallengeJobRequest) Reset

func (m *ChallengeJobRequest) Reset()

func (*ChallengeJobRequest) Size

func (m *ChallengeJobRequest) Size() (n int)

func (*ChallengeJobRequest) String

func (m *ChallengeJobRequest) String() string

func (*ChallengeJobRequest) Unmarshal

func (m *ChallengeJobRequest) Unmarshal(dAtA []byte) error

func (*ChallengeJobRequest) XXX_DiscardUnknown

func (m *ChallengeJobRequest) XXX_DiscardUnknown()

func (*ChallengeJobRequest) XXX_Marshal

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

func (*ChallengeJobRequest) XXX_Merge

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

func (*ChallengeJobRequest) XXX_MessageName

func (*ChallengeJobRequest) XXX_MessageName() string

func (*ChallengeJobRequest) XXX_Size

func (m *ChallengeJobRequest) XXX_Size() int

func (*ChallengeJobRequest) XXX_Unmarshal

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

type ChallengeJobResponse

type ChallengeJobResponse struct {
	NodePid               string    `protobuf:"bytes,1,opt,name=node_pid,json=nodePid,proto3" json:"node_pid,omitempty" pg:"node_pid"`
	IssuerPid             string    `protobuf:"bytes,2,opt,name=issuer_pid,json=issuerPid,proto3" json:"issuer_pid,omitempty" pg:"issuer_pid"`
	JobId                 string    `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty" pg:"job_id"`
	PackageUrl            string    `protobuf:"bytes,4,opt,name=package_url,json=packageUrl,proto3" json:"package_url,omitempty" pg:"package_url"`
	PackageQuestionsCount int32     `` /* 156-byte string literal not displayed */
	SendTime              time.Time `protobuf:"bytes,6,opt,name=send_time,json=sendTime,proto3,stdtime" json:"send_time" pg:"send_time"`
	JobFinishDeadline     time.Time `` /* 137-byte string literal not displayed */
	Signature             []byte    `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral  struct{}  `json:"-" pg:"-"`
	XXX_unrecognized      []byte    `json:"-" pg:"-"`
	XXX_sizecache         int32     `json:"-" pg:"-"`
}

func NewPopulatedChallengeJobResponse

func NewPopulatedChallengeJobResponse(r randyGuard, easy bool) *ChallengeJobResponse

func (*ChallengeJobResponse) Descriptor

func (*ChallengeJobResponse) Descriptor() ([]byte, []int)

func (*ChallengeJobResponse) GetIssuerPid

func (m *ChallengeJobResponse) GetIssuerPid() string

func (*ChallengeJobResponse) GetJobFinishDeadline

func (m *ChallengeJobResponse) GetJobFinishDeadline() time.Time

func (*ChallengeJobResponse) GetJobId

func (m *ChallengeJobResponse) GetJobId() string

func (*ChallengeJobResponse) GetNodePid

func (m *ChallengeJobResponse) GetNodePid() string

func (*ChallengeJobResponse) GetPackageQuestionsCount

func (m *ChallengeJobResponse) GetPackageQuestionsCount() int32

func (*ChallengeJobResponse) GetPackageUrl

func (m *ChallengeJobResponse) GetPackageUrl() string

func (*ChallengeJobResponse) GetSendTime

func (m *ChallengeJobResponse) GetSendTime() time.Time

func (*ChallengeJobResponse) GetSignature

func (m *ChallengeJobResponse) GetSignature() []byte

func (*ChallengeJobResponse) Marshal

func (m *ChallengeJobResponse) Marshal() (dAtA []byte, err error)

func (*ChallengeJobResponse) MarshalTo

func (m *ChallengeJobResponse) MarshalTo(dAtA []byte) (int, error)

func (*ChallengeJobResponse) MarshalToSizedBuffer

func (m *ChallengeJobResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChallengeJobResponse) ProtoMessage

func (*ChallengeJobResponse) ProtoMessage()

func (*ChallengeJobResponse) Reset

func (m *ChallengeJobResponse) Reset()

func (*ChallengeJobResponse) Size

func (m *ChallengeJobResponse) Size() (n int)

func (*ChallengeJobResponse) String

func (m *ChallengeJobResponse) String() string

func (*ChallengeJobResponse) Unmarshal

func (m *ChallengeJobResponse) Unmarshal(dAtA []byte) error

func (*ChallengeJobResponse) XXX_DiscardUnknown

func (m *ChallengeJobResponse) XXX_DiscardUnknown()

func (*ChallengeJobResponse) XXX_Marshal

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

func (*ChallengeJobResponse) XXX_Merge

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

func (*ChallengeJobResponse) XXX_MessageName

func (*ChallengeJobResponse) XXX_MessageName() string

func (*ChallengeJobResponse) XXX_Size

func (m *ChallengeJobResponse) XXX_Size() int

func (*ChallengeJobResponse) XXX_Unmarshal

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

type ChallengeJobResult

type ChallengeJobResult struct {
	NodePid              string                  `protobuf:"bytes,1,opt,name=node_pid,json=nodePid,proto3" json:"node_pid,omitempty" pg:"node_pid"`
	JobId                string                  `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty" pg:"job_id"`
	Result               []*ShardChallengeResult `protobuf:"bytes,3,rep,name=result,proto3" json:"result,omitempty" pg:"result"`
	SubmitTime           time.Time               `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time" pg:"submit_time"`
	Signature            []byte                  `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-" pg:"-"`
	XXX_unrecognized     []byte                  `json:"-" pg:"-"`
	XXX_sizecache        int32                   `json:"-" pg:"-"`
}

func NewPopulatedChallengeJobResult

func NewPopulatedChallengeJobResult(r randyGuard, easy bool) *ChallengeJobResult

func (*ChallengeJobResult) Descriptor

func (*ChallengeJobResult) Descriptor() ([]byte, []int)

func (*ChallengeJobResult) GetJobId

func (m *ChallengeJobResult) GetJobId() string

func (*ChallengeJobResult) GetNodePid

func (m *ChallengeJobResult) GetNodePid() string

func (*ChallengeJobResult) GetResult

func (m *ChallengeJobResult) GetResult() []*ShardChallengeResult

func (*ChallengeJobResult) GetSignature

func (m *ChallengeJobResult) GetSignature() []byte

func (*ChallengeJobResult) GetSubmitTime

func (m *ChallengeJobResult) GetSubmitTime() time.Time

func (*ChallengeJobResult) Marshal

func (m *ChallengeJobResult) Marshal() (dAtA []byte, err error)

func (*ChallengeJobResult) MarshalTo

func (m *ChallengeJobResult) MarshalTo(dAtA []byte) (int, error)

func (*ChallengeJobResult) MarshalToSizedBuffer

func (m *ChallengeJobResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChallengeJobResult) ProtoMessage

func (*ChallengeJobResult) ProtoMessage()

func (*ChallengeJobResult) Reset

func (m *ChallengeJobResult) Reset()

func (*ChallengeJobResult) Size

func (m *ChallengeJobResult) Size() (n int)

func (*ChallengeJobResult) String

func (m *ChallengeJobResult) String() string

func (*ChallengeJobResult) Unmarshal

func (m *ChallengeJobResult) Unmarshal(dAtA []byte) error

func (*ChallengeJobResult) XXX_DiscardUnknown

func (m *ChallengeJobResult) XXX_DiscardUnknown()

func (*ChallengeJobResult) XXX_Marshal

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

func (*ChallengeJobResult) XXX_Merge

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

func (*ChallengeJobResult) XXX_MessageName

func (*ChallengeJobResult) XXX_MessageName() string

func (*ChallengeJobResult) XXX_Size

func (m *ChallengeJobResult) XXX_Size() int

func (*ChallengeJobResult) XXX_Unmarshal

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

type ChallengeQuestion

type ChallengeQuestion struct {
	ShardHash            string   `protobuf:"bytes,1,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	HostPid              string   `protobuf:"bytes,2,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	ChunkIndex           int32    `protobuf:"varint,3,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunk_index,omitempty" pg:"chunk_index"`
	Nonce                string   `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty" pg:"nonce"`
	ExpectAnswer         string   `protobuf:"bytes,5,opt,name=expect_answer,json=expectAnswer,proto3" json:"expect_answer,omitempty" pg:"expect_answer"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedChallengeQuestion

func NewPopulatedChallengeQuestion(r randyGuard, easy bool) *ChallengeQuestion

func (*ChallengeQuestion) Descriptor

func (*ChallengeQuestion) Descriptor() ([]byte, []int)

func (*ChallengeQuestion) GetChunkIndex

func (m *ChallengeQuestion) GetChunkIndex() int32

func (*ChallengeQuestion) GetExpectAnswer

func (m *ChallengeQuestion) GetExpectAnswer() string

func (*ChallengeQuestion) GetHostPid

func (m *ChallengeQuestion) GetHostPid() string

func (*ChallengeQuestion) GetNonce

func (m *ChallengeQuestion) GetNonce() string

func (*ChallengeQuestion) GetShardHash

func (m *ChallengeQuestion) GetShardHash() string

func (*ChallengeQuestion) Marshal

func (m *ChallengeQuestion) Marshal() (dAtA []byte, err error)

func (*ChallengeQuestion) MarshalTo

func (m *ChallengeQuestion) MarshalTo(dAtA []byte) (int, error)

func (*ChallengeQuestion) MarshalToSizedBuffer

func (m *ChallengeQuestion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChallengeQuestion) ProtoMessage

func (*ChallengeQuestion) ProtoMessage()

func (*ChallengeQuestion) Reset

func (m *ChallengeQuestion) Reset()

func (*ChallengeQuestion) Size

func (m *ChallengeQuestion) Size() (n int)

func (*ChallengeQuestion) String

func (m *ChallengeQuestion) String() string

func (*ChallengeQuestion) Unmarshal

func (m *ChallengeQuestion) Unmarshal(dAtA []byte) error

func (*ChallengeQuestion) XXX_DiscardUnknown

func (m *ChallengeQuestion) XXX_DiscardUnknown()

func (*ChallengeQuestion) XXX_Marshal

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

func (*ChallengeQuestion) XXX_Merge

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

func (*ChallengeQuestion) XXX_MessageName

func (*ChallengeQuestion) XXX_MessageName() string

func (*ChallengeQuestion) XXX_Size

func (m *ChallengeQuestion) XXX_Size() int

func (*ChallengeQuestion) XXX_Unmarshal

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

type CheckFileStoreMetaRequest

type CheckFileStoreMetaRequest struct {
	FileHash             string    `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	RenterPid            string    `protobuf:"bytes,2,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	RequesterPid         string    `protobuf:"bytes,3,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	RequestTime          time.Time `protobuf:"bytes,4,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time" pg:"request_time"`
	Signature            []byte    `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedCheckFileStoreMetaRequest

func NewPopulatedCheckFileStoreMetaRequest(r randyGuard, easy bool) *CheckFileStoreMetaRequest

func (*CheckFileStoreMetaRequest) Descriptor

func (*CheckFileStoreMetaRequest) Descriptor() ([]byte, []int)

func (*CheckFileStoreMetaRequest) GetFileHash

func (m *CheckFileStoreMetaRequest) GetFileHash() string

func (*CheckFileStoreMetaRequest) GetRenterPid

func (m *CheckFileStoreMetaRequest) GetRenterPid() string

func (*CheckFileStoreMetaRequest) GetRequestTime

func (m *CheckFileStoreMetaRequest) GetRequestTime() time.Time

func (*CheckFileStoreMetaRequest) GetRequesterPid

func (m *CheckFileStoreMetaRequest) GetRequesterPid() string

func (*CheckFileStoreMetaRequest) GetSignature

func (m *CheckFileStoreMetaRequest) GetSignature() []byte

func (*CheckFileStoreMetaRequest) Marshal

func (m *CheckFileStoreMetaRequest) Marshal() (dAtA []byte, err error)

func (*CheckFileStoreMetaRequest) MarshalTo

func (m *CheckFileStoreMetaRequest) MarshalTo(dAtA []byte) (int, error)

func (*CheckFileStoreMetaRequest) MarshalToSizedBuffer

func (m *CheckFileStoreMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CheckFileStoreMetaRequest) ProtoMessage

func (*CheckFileStoreMetaRequest) ProtoMessage()

func (*CheckFileStoreMetaRequest) Reset

func (m *CheckFileStoreMetaRequest) Reset()

func (*CheckFileStoreMetaRequest) Size

func (m *CheckFileStoreMetaRequest) Size() (n int)

func (*CheckFileStoreMetaRequest) String

func (m *CheckFileStoreMetaRequest) String() string

func (*CheckFileStoreMetaRequest) Unmarshal

func (m *CheckFileStoreMetaRequest) Unmarshal(dAtA []byte) error

func (*CheckFileStoreMetaRequest) XXX_DiscardUnknown

func (m *CheckFileStoreMetaRequest) XXX_DiscardUnknown()

func (*CheckFileStoreMetaRequest) XXX_Marshal

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

func (*CheckFileStoreMetaRequest) XXX_Merge

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

func (*CheckFileStoreMetaRequest) XXX_MessageName

func (*CheckFileStoreMetaRequest) XXX_MessageName() string

func (*CheckFileStoreMetaRequest) XXX_Size

func (m *CheckFileStoreMetaRequest) XXX_Size() int

func (*CheckFileStoreMetaRequest) XXX_Unmarshal

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

type Contract

type Contract struct {
	//the contract executor record, changed frequently after proposal
	ContractMeta             `protobuf:"bytes,1,opt,name=contract,proto3,embedded=contract" json:"contract" pg:"contract"`
	State                    Contract_ContractState `protobuf:"varint,2,opt,name=state,proto3,enum=guard.Contract_ContractState" json:"state,omitempty" pg:"state"`
	RenterSignature          []byte                 `` /* 128-byte string literal not displayed */
	HostSignature            []byte                 `protobuf:"bytes,4,opt,name=host_signature,json=hostSignature,proto3" json:"host_signature,omitempty" pg:"host_signature"`
	EscrowSignedTime         time.Time              `` /* 133-byte string literal not displayed */
	EscrowSignature          []byte                 `` /* 128-byte string literal not displayed */
	ChangeLog                []*Log                 `protobuf:"bytes,7,rep,name=change_log,json=changeLog,proto3" json:"change_log,omitempty" pg:"-"`
	LastModifyTime           time.Time              `protobuf:"bytes,8,opt,name=last_modify_time,json=lastModifyTime,proto3,stdtime" json:"last_modify_time" pg:"last_modify_time"`
	GuardSignature           []byte                 `protobuf:"bytes,9,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	PreparerPid              string                 `protobuf:"bytes,10,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	PreparerSignature        []byte                 `` /* 137-byte string literal not displayed */
	LastSuccessChallengeTime time.Time              `` /* 169-byte string literal not displayed */
	LastChallengeTime        time.Time              `` /* 138-byte string literal not displayed */
	ChallengeTimes           int32                  `` /* 126-byte string literal not displayed */
	ChallengeWarnTimes       int32                  `` /* 145-byte string literal not displayed */
	ChallengeSuccessTimes    int32                  `` /* 157-byte string literal not displayed */
	FirstChallengeSuccess    time.Time              `` /* 154-byte string literal not displayed */
	Token                    string                 `protobuf:"bytes,18,opt,name=token,proto3" json:"token,omitempty" pg:"token"`
	XXX_NoUnkeyedLiteral     struct{}               `json:"-" pg:"-"`
	XXX_unrecognized         []byte                 `json:"-" pg:"-"`
	XXX_sizecache            int32                  `json:"-" pg:"-"`
}

func NewPopulatedContract

func NewPopulatedContract(r randyGuard, easy bool) *Contract

func (*Contract) Descriptor

func (*Contract) Descriptor() ([]byte, []int)

func (*Contract) GetChallengeSuccessTimes

func (m *Contract) GetChallengeSuccessTimes() int32

func (*Contract) GetChallengeTimes

func (m *Contract) GetChallengeTimes() int32

func (*Contract) GetChallengeWarnTimes

func (m *Contract) GetChallengeWarnTimes() int32

func (*Contract) GetChangeLog

func (m *Contract) GetChangeLog() []*Log

func (*Contract) GetEscrowSignature

func (m *Contract) GetEscrowSignature() []byte

func (*Contract) GetEscrowSignedTime

func (m *Contract) GetEscrowSignedTime() time.Time

func (*Contract) GetFirstChallengeSuccess

func (m *Contract) GetFirstChallengeSuccess() time.Time

func (*Contract) GetGuardSignature

func (m *Contract) GetGuardSignature() []byte

func (*Contract) GetHostSignature

func (m *Contract) GetHostSignature() []byte

func (*Contract) GetLastChallengeTime

func (m *Contract) GetLastChallengeTime() time.Time

func (*Contract) GetLastModifyTime

func (m *Contract) GetLastModifyTime() time.Time

func (*Contract) GetLastSuccessChallengeTime

func (m *Contract) GetLastSuccessChallengeTime() time.Time

func (*Contract) GetPreparerPid

func (m *Contract) GetPreparerPid() string

func (*Contract) GetPreparerSignature

func (m *Contract) GetPreparerSignature() []byte

func (*Contract) GetRenterSignature

func (m *Contract) GetRenterSignature() []byte

func (*Contract) GetState

func (m *Contract) GetState() Contract_ContractState

func (*Contract) GetToken

func (m *Contract) GetToken() string

func (*Contract) Marshal

func (m *Contract) Marshal() (dAtA []byte, err error)

func (*Contract) MarshalTo

func (m *Contract) MarshalTo(dAtA []byte) (int, error)

func (*Contract) MarshalToSizedBuffer

func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) Size

func (m *Contract) Size() (n int)

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Unmarshal

func (m *Contract) Unmarshal(dAtA []byte) error

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

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

func (*Contract) XXX_Merge

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

func (*Contract) XXX_MessageName

func (*Contract) XXX_MessageName() string

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

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

type ContractMeta

type ContractMeta struct {
	//Contract proposed by renter, will not be changed after renter proposed
	ContractId           string                `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty" pg:"contract_id"`
	RenterPid            string                `protobuf:"bytes,2,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	HostPid              string                `protobuf:"bytes,3,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	ShardHash            string                `protobuf:"bytes,4,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	ShardIndex           int32                 `protobuf:"varint,5,opt,name=shard_index,json=shardIndex,proto3" json:"shard_index,omitempty" pg:"shard_index"`
	ShardFileSize        int64                 `protobuf:"varint,6,opt,name=shard_file_size,json=shardFileSize,proto3" json:"shard_file_size,omitempty" pg:"shard_file_size"`
	FileHash             string                `protobuf:"bytes,7,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	RentStart            time.Time             `protobuf:"bytes,8,opt,name=rent_start,json=rentStart,proto3,stdtime" json:"rent_start" pg:"rent_start"`
	RentEnd              time.Time             `protobuf:"bytes,9,opt,name=rent_end,json=rentEnd,proto3,stdtime" json:"rent_end" pg:"rent_end"`
	GuardPid             string                `protobuf:"bytes,10,opt,name=guard_pid,json=guardPid,proto3" json:"guard_pid,omitempty" pg:"guard_pid"`
	EscrowPid            string                `protobuf:"bytes,11,opt,name=escrow_pid,json=escrowPid,proto3" json:"escrow_pid,omitempty" pg:"escrow_pid"`
	Price                int64                 `protobuf:"varint,12,opt,name=price,proto3" json:"price,omitempty" pg:"price"`
	Amount               int64                 `protobuf:"varint,13,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"`
	CollateralAmount     int64                 `` /* 134-byte string literal not displayed */
	PayoutSchedule       ContractMeta_Schedule `` /* 159-byte string literal not displayed */
	NumPayouts           int32                 `protobuf:"varint,16,opt,name=num_payouts,json=numPayouts,proto3" json:"num_payouts,omitempty" pg:"num_payouts"`
	ContingentAmount     int64                 `` /* 134-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}              `json:"-" pg:"-"`
	XXX_unrecognized     []byte                `json:"-" pg:"-"`
	XXX_sizecache        int32                 `json:"-" pg:"-"`
}

the relationship of the objects from Guard's view FileStoreMeta (1:n) Contract (1:n) payout contract is the signed document between the renter and host for one shard's storage the contract information contains buyer, seller, escrow, guard , storage shard's information, rent duration, amount, payment method(periodically and times) ContractMeta is the information which will not be changed after proposal Contract technically is the contract execution record, it contains the contractMeta and state information

func NewPopulatedContractMeta

func NewPopulatedContractMeta(r randyGuard, easy bool) *ContractMeta

func (*ContractMeta) Descriptor

func (*ContractMeta) Descriptor() ([]byte, []int)

func (*ContractMeta) GetAmount

func (m *ContractMeta) GetAmount() int64

func (*ContractMeta) GetCollateralAmount

func (m *ContractMeta) GetCollateralAmount() int64

func (*ContractMeta) GetContingentAmount

func (m *ContractMeta) GetContingentAmount() int64

func (*ContractMeta) GetContractId

func (m *ContractMeta) GetContractId() string

func (*ContractMeta) GetEscrowPid

func (m *ContractMeta) GetEscrowPid() string

func (*ContractMeta) GetFileHash

func (m *ContractMeta) GetFileHash() string

func (*ContractMeta) GetGuardPid

func (m *ContractMeta) GetGuardPid() string

func (*ContractMeta) GetHostPid

func (m *ContractMeta) GetHostPid() string

func (*ContractMeta) GetNumPayouts

func (m *ContractMeta) GetNumPayouts() int32

func (*ContractMeta) GetPayoutSchedule

func (m *ContractMeta) GetPayoutSchedule() ContractMeta_Schedule

func (*ContractMeta) GetPrice

func (m *ContractMeta) GetPrice() int64

func (*ContractMeta) GetRentEnd

func (m *ContractMeta) GetRentEnd() time.Time

func (*ContractMeta) GetRentStart

func (m *ContractMeta) GetRentStart() time.Time

func (*ContractMeta) GetRenterPid

func (m *ContractMeta) GetRenterPid() string

func (*ContractMeta) GetShardFileSize

func (m *ContractMeta) GetShardFileSize() int64

func (*ContractMeta) GetShardHash

func (m *ContractMeta) GetShardHash() string

func (*ContractMeta) GetShardIndex

func (m *ContractMeta) GetShardIndex() int32

func (*ContractMeta) Marshal

func (m *ContractMeta) Marshal() (dAtA []byte, err error)

func (*ContractMeta) MarshalTo

func (m *ContractMeta) MarshalTo(dAtA []byte) (int, error)

func (*ContractMeta) MarshalToSizedBuffer

func (m *ContractMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractMeta) ProtoMessage

func (*ContractMeta) ProtoMessage()

func (*ContractMeta) Reset

func (m *ContractMeta) Reset()

func (*ContractMeta) Size

func (m *ContractMeta) Size() (n int)

func (*ContractMeta) String

func (m *ContractMeta) String() string

func (*ContractMeta) Unmarshal

func (m *ContractMeta) Unmarshal(dAtA []byte) error

func (*ContractMeta) XXX_DiscardUnknown

func (m *ContractMeta) XXX_DiscardUnknown()

func (*ContractMeta) XXX_Marshal

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

func (*ContractMeta) XXX_Merge

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

func (*ContractMeta) XXX_MessageName

func (*ContractMeta) XXX_MessageName() string

func (*ContractMeta) XXX_Size

func (m *ContractMeta) XXX_Size() int

func (*ContractMeta) XXX_Unmarshal

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

type ContractMeta_Schedule

type ContractMeta_Schedule int32
const (
	ContractMeta_MONTHLY   ContractMeta_Schedule = 0
	ContractMeta_QUARTERLY ContractMeta_Schedule = 1
	ContractMeta_ANNUALLY  ContractMeta_Schedule = 2
)

func (ContractMeta_Schedule) EnumDescriptor

func (ContractMeta_Schedule) EnumDescriptor() ([]byte, []int)

func (ContractMeta_Schedule) String

func (x ContractMeta_Schedule) String() string

type Contract_ContractState

type Contract_ContractState int32
const (
	Contract_DRAFT             Contract_ContractState = 0
	Contract_SIGNED            Contract_ContractState = 1
	Contract_UPLOADED          Contract_ContractState = 2
	Contract_LOST              Contract_ContractState = 3
	Contract_CANCELED          Contract_ContractState = 4
	Contract_CLOSED            Contract_ContractState = 5
	Contract_RENEWED           Contract_ContractState = 6
	Contract_OBSOLETE          Contract_ContractState = 7
	Contract_WARN              Contract_ContractState = 8
	Contract_DRAFT_WARN        Contract_ContractState = 9
	Contract_READY_CHALLENGE   Contract_ContractState = 10
	Contract_RECREATED         Contract_ContractState = 11
	Contract_REQUEST_CHALLENGE Contract_ContractState = 12
)

func (Contract_ContractState) EnumDescriptor

func (Contract_ContractState) EnumDescriptor() ([]byte, []int)

func (Contract_ContractState) String

func (x Contract_ContractState) String() string

type ContractsList

type ContractsList struct {
	Request              *ListHostContractsRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty" pg:"request"`
	GenerateTime         time.Time                 `protobuf:"bytes,2,opt,name=generate_time,json=generateTime,proto3,stdtime" json:"generate_time" pg:"generate_time"`
	Contracts            []*Contract               `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty" pg:"contracts"`
	Count                int32                     `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty" pg:"count"`
	Signature            []byte                    `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-" pg:"-"`
	XXX_unrecognized     []byte                    `json:"-" pg:"-"`
	XXX_sizecache        int32                     `json:"-" pg:"-"`
}

func NewPopulatedContractsList

func NewPopulatedContractsList(r randyGuard, easy bool) *ContractsList

func (*ContractsList) Descriptor

func (*ContractsList) Descriptor() ([]byte, []int)

func (*ContractsList) GetContracts

func (m *ContractsList) GetContracts() []*Contract

func (*ContractsList) GetCount

func (m *ContractsList) GetCount() int32

func (*ContractsList) GetGenerateTime

func (m *ContractsList) GetGenerateTime() time.Time

func (*ContractsList) GetRequest

func (m *ContractsList) GetRequest() *ListHostContractsRequest

func (*ContractsList) GetSignature

func (m *ContractsList) GetSignature() []byte

func (*ContractsList) Marshal

func (m *ContractsList) Marshal() (dAtA []byte, err error)

func (*ContractsList) MarshalTo

func (m *ContractsList) MarshalTo(dAtA []byte) (int, error)

func (*ContractsList) MarshalToSizedBuffer

func (m *ContractsList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractsList) ProtoMessage

func (*ContractsList) ProtoMessage()

func (*ContractsList) Reset

func (m *ContractsList) Reset()

func (*ContractsList) Size

func (m *ContractsList) Size() (n int)

func (*ContractsList) String

func (m *ContractsList) String() string

func (*ContractsList) Unmarshal

func (m *ContractsList) Unmarshal(dAtA []byte) error

func (*ContractsList) XXX_DiscardUnknown

func (m *ContractsList) XXX_DiscardUnknown()

func (*ContractsList) XXX_Marshal

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

func (*ContractsList) XXX_Merge

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

func (*ContractsList) XXX_MessageName

func (*ContractsList) XXX_MessageName() string

func (*ContractsList) XXX_Size

func (m *ContractsList) XXX_Size() int

func (*ContractsList) XXX_Unmarshal

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

type DailySummary

type DailySummary struct {
	QueryDate                time.Time `protobuf:"bytes,1,opt,name=query_date,json=queryDate,proto3,stdtime" json:"query_date" pg:"query_date"`
	ResponseTime             time.Time `protobuf:"bytes,2,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time" pg:"response_time"`
	PreparerPid              string    `protobuf:"bytes,3,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	Signature                []byte    `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	WorkingStorageSize       int64     `` /* 144-byte string literal not displayed */
	NewContracts             int64     `protobuf:"varint,6,opt,name=new_contracts,json=newContracts,proto3" json:"new_contracts,omitempty" pg:"new_contracts"`
	NewContractsHost         int64     `` /* 136-byte string literal not displayed */
	NewContractsRenter       int64     `` /* 144-byte string literal not displayed */
	NewContractsAveragePrice int64     `` /* 171-byte string literal not displayed */
	NewFiles                 int64     `protobuf:"varint,10,opt,name=new_files,json=newFiles,proto3" json:"new_files,omitempty" pg:"new_files"`
	NewShardsSize            int64     `protobuf:"varint,11,opt,name=new_shards_size,json=newShardsSize,proto3" json:"new_shards_size,omitempty" pg:"new_shards_size"`
	XXX_NoUnkeyedLiteral     struct{}  `json:"-" pg:"-"`
	XXX_unrecognized         []byte    `json:"-" pg:"-"`
	XXX_sizecache            int32     `json:"-" pg:"-"`
}

func NewPopulatedDailySummary

func NewPopulatedDailySummary(r randyGuard, easy bool) *DailySummary

func (*DailySummary) Descriptor

func (*DailySummary) Descriptor() ([]byte, []int)

func (*DailySummary) GetNewContracts

func (m *DailySummary) GetNewContracts() int64

func (*DailySummary) GetNewContractsAveragePrice

func (m *DailySummary) GetNewContractsAveragePrice() int64

func (*DailySummary) GetNewContractsHost

func (m *DailySummary) GetNewContractsHost() int64

func (*DailySummary) GetNewContractsRenter

func (m *DailySummary) GetNewContractsRenter() int64

func (*DailySummary) GetNewFiles

func (m *DailySummary) GetNewFiles() int64

func (*DailySummary) GetNewShardsSize

func (m *DailySummary) GetNewShardsSize() int64

func (*DailySummary) GetPreparerPid

func (m *DailySummary) GetPreparerPid() string

func (*DailySummary) GetQueryDate

func (m *DailySummary) GetQueryDate() time.Time

func (*DailySummary) GetResponseTime

func (m *DailySummary) GetResponseTime() time.Time

func (*DailySummary) GetSignature

func (m *DailySummary) GetSignature() []byte

func (*DailySummary) GetWorkingStorageSize

func (m *DailySummary) GetWorkingStorageSize() int64

func (*DailySummary) Marshal

func (m *DailySummary) Marshal() (dAtA []byte, err error)

func (*DailySummary) MarshalTo

func (m *DailySummary) MarshalTo(dAtA []byte) (int, error)

func (*DailySummary) MarshalToSizedBuffer

func (m *DailySummary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DailySummary) ProtoMessage

func (*DailySummary) ProtoMessage()

func (*DailySummary) Reset

func (m *DailySummary) Reset()

func (*DailySummary) Size

func (m *DailySummary) Size() (n int)

func (*DailySummary) String

func (m *DailySummary) String() string

func (*DailySummary) Unmarshal

func (m *DailySummary) Unmarshal(dAtA []byte) error

func (*DailySummary) XXX_DiscardUnknown

func (m *DailySummary) XXX_DiscardUnknown()

func (*DailySummary) XXX_Marshal

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

func (*DailySummary) XXX_Merge

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

func (*DailySummary) XXX_MessageName

func (*DailySummary) XXX_MessageName() string

func (*DailySummary) XXX_Size

func (m *DailySummary) XXX_Size() int

func (*DailySummary) XXX_Unmarshal

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

type DeCentralQuestions

type DeCentralQuestions struct {
	Qs                   []*DeQuestion `protobuf:"bytes,1,rep,name=qs,proto3" json:"qs,omitempty" pg:"qs"`
	Count                int32         `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty" pg:"count"`
	Uuid                 string        `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty" pg:"uuid"`
	Url                  string        `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty" pg:"url"`
	EndTime              *time.Time    `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time,omitempty" pg:"end_time"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-" pg:"-"`
	XXX_unrecognized     []byte        `json:"-" pg:"-"`
	XXX_sizecache        int32         `json:"-" pg:"-"`
}

func NewPopulatedDeCentralQuestions

func NewPopulatedDeCentralQuestions(r randyGuard, easy bool) *DeCentralQuestions

func (*DeCentralQuestions) Descriptor

func (*DeCentralQuestions) Descriptor() ([]byte, []int)

func (*DeCentralQuestions) GetCount

func (m *DeCentralQuestions) GetCount() int32

func (*DeCentralQuestions) GetEndTime

func (m *DeCentralQuestions) GetEndTime() *time.Time

func (*DeCentralQuestions) GetQs

func (m *DeCentralQuestions) GetQs() []*DeQuestion

func (*DeCentralQuestions) GetUrl

func (m *DeCentralQuestions) GetUrl() string

func (*DeCentralQuestions) GetUuid

func (m *DeCentralQuestions) GetUuid() string

func (*DeCentralQuestions) Marshal

func (m *DeCentralQuestions) Marshal() (dAtA []byte, err error)

func (*DeCentralQuestions) MarshalTo

func (m *DeCentralQuestions) MarshalTo(dAtA []byte) (int, error)

func (*DeCentralQuestions) MarshalToSizedBuffer

func (m *DeCentralQuestions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeCentralQuestions) ProtoMessage

func (*DeCentralQuestions) ProtoMessage()

func (*DeCentralQuestions) Reset

func (m *DeCentralQuestions) Reset()

func (*DeCentralQuestions) Size

func (m *DeCentralQuestions) Size() (n int)

func (*DeCentralQuestions) String

func (m *DeCentralQuestions) String() string

func (*DeCentralQuestions) Unmarshal

func (m *DeCentralQuestions) Unmarshal(dAtA []byte) error

func (*DeCentralQuestions) XXX_DiscardUnknown

func (m *DeCentralQuestions) XXX_DiscardUnknown()

func (*DeCentralQuestions) XXX_Marshal

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

func (*DeCentralQuestions) XXX_Merge

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

func (*DeCentralQuestions) XXX_MessageName

func (*DeCentralQuestions) XXX_MessageName() string

func (*DeCentralQuestions) XXX_Size

func (m *DeCentralQuestions) XXX_Size() int

func (*DeCentralQuestions) XXX_Unmarshal

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

type DeQuestion

type DeQuestion struct {
	ShardHash            string   `protobuf:"bytes,1,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	HostPid              string   `protobuf:"bytes,2,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	ChunkIndex           int32    `protobuf:"varint,3,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunk_index,omitempty" pg:"chunk_index"`
	Nonce                string   `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty" pg:"nonce"`
	FileHash             string   `protobuf:"bytes,5,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedDeQuestion

func NewPopulatedDeQuestion(r randyGuard, easy bool) *DeQuestion

func (*DeQuestion) Descriptor

func (*DeQuestion) Descriptor() ([]byte, []int)

func (*DeQuestion) GetChunkIndex

func (m *DeQuestion) GetChunkIndex() int32

func (*DeQuestion) GetFileHash

func (m *DeQuestion) GetFileHash() string

func (*DeQuestion) GetHostPid

func (m *DeQuestion) GetHostPid() string

func (*DeQuestion) GetNonce

func (m *DeQuestion) GetNonce() string

func (*DeQuestion) GetShardHash

func (m *DeQuestion) GetShardHash() string

func (*DeQuestion) Marshal

func (m *DeQuestion) Marshal() (dAtA []byte, err error)

func (*DeQuestion) MarshalTo

func (m *DeQuestion) MarshalTo(dAtA []byte) (int, error)

func (*DeQuestion) MarshalToSizedBuffer

func (m *DeQuestion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeQuestion) ProtoMessage

func (*DeQuestion) ProtoMessage()

func (*DeQuestion) Reset

func (m *DeQuestion) Reset()

func (*DeQuestion) Size

func (m *DeQuestion) Size() (n int)

func (*DeQuestion) String

func (m *DeQuestion) String() string

func (*DeQuestion) Unmarshal

func (m *DeQuestion) Unmarshal(dAtA []byte) error

func (*DeQuestion) XXX_DiscardUnknown

func (m *DeQuestion) XXX_DiscardUnknown()

func (*DeQuestion) XXX_Marshal

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

func (*DeQuestion) XXX_Merge

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

func (*DeQuestion) XXX_MessageName

func (*DeQuestion) XXX_MessageName() string

func (*DeQuestion) XXX_Size

func (m *DeQuestion) XXX_Size() int

func (*DeQuestion) XXX_Unmarshal

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

type FileChallengeQuestions

type FileChallengeQuestions struct {
	FileHash             string                     `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardQuestions       []*ShardChallengeQuestions `protobuf:"bytes,2,rep,name=shard_questions,json=shardQuestions,proto3" json:"shard_questions,omitempty" pg:"shard_questions"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-" pg:"-"`
	XXX_unrecognized     []byte                     `json:"-" pg:"-"`
	XXX_sizecache        int32                      `json:"-" pg:"-"`
}

func NewPopulatedFileChallengeQuestions

func NewPopulatedFileChallengeQuestions(r randyGuard, easy bool) *FileChallengeQuestions

func (*FileChallengeQuestions) Descriptor

func (*FileChallengeQuestions) Descriptor() ([]byte, []int)

func (*FileChallengeQuestions) GetFileHash

func (m *FileChallengeQuestions) GetFileHash() string

func (*FileChallengeQuestions) GetShardQuestions

func (m *FileChallengeQuestions) GetShardQuestions() []*ShardChallengeQuestions

func (*FileChallengeQuestions) Marshal

func (m *FileChallengeQuestions) Marshal() (dAtA []byte, err error)

func (*FileChallengeQuestions) MarshalTo

func (m *FileChallengeQuestions) MarshalTo(dAtA []byte) (int, error)

func (*FileChallengeQuestions) MarshalToSizedBuffer

func (m *FileChallengeQuestions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileChallengeQuestions) ProtoMessage

func (*FileChallengeQuestions) ProtoMessage()

func (*FileChallengeQuestions) Reset

func (m *FileChallengeQuestions) Reset()

func (*FileChallengeQuestions) Size

func (m *FileChallengeQuestions) Size() (n int)

func (*FileChallengeQuestions) String

func (m *FileChallengeQuestions) String() string

func (*FileChallengeQuestions) Unmarshal

func (m *FileChallengeQuestions) Unmarshal(dAtA []byte) error

func (*FileChallengeQuestions) XXX_DiscardUnknown

func (m *FileChallengeQuestions) XXX_DiscardUnknown()

func (*FileChallengeQuestions) XXX_Marshal

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

func (*FileChallengeQuestions) XXX_Merge

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

func (*FileChallengeQuestions) XXX_MessageName

func (*FileChallengeQuestions) XXX_MessageName() string

func (*FileChallengeQuestions) XXX_Size

func (m *FileChallengeQuestions) XXX_Size() int

func (*FileChallengeQuestions) XXX_Unmarshal

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

type FileStoreListResponse

type FileStoreListResponse struct {
	Request              *ListRenterFileInfoRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty" pg:"request"`
	CurrentTime          time.Time                  `protobuf:"bytes,2,opt,name=current_time,json=currentTime,proto3,stdtime" json:"current_time" pg:"current_time"`
	FileStoreMeta        []*FileStoreMeta           `protobuf:"bytes,3,rep,name=file_store_meta,json=fileStoreMeta,proto3" json:"file_store_meta,omitempty" pg:"file_store_meta"`
	Count                int32                      `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty" pg:"count"`
	Signature            []byte                     `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-" pg:"-"`
	XXX_unrecognized     []byte                     `json:"-" pg:"-"`
	XXX_sizecache        int32                      `json:"-" pg:"-"`
}

func NewPopulatedFileStoreListResponse

func NewPopulatedFileStoreListResponse(r randyGuard, easy bool) *FileStoreListResponse

func (*FileStoreListResponse) Descriptor

func (*FileStoreListResponse) Descriptor() ([]byte, []int)

func (*FileStoreListResponse) GetCount

func (m *FileStoreListResponse) GetCount() int32

func (*FileStoreListResponse) GetCurrentTime

func (m *FileStoreListResponse) GetCurrentTime() time.Time

func (*FileStoreListResponse) GetFileStoreMeta

func (m *FileStoreListResponse) GetFileStoreMeta() []*FileStoreMeta

func (*FileStoreListResponse) GetRequest

func (*FileStoreListResponse) GetSignature

func (m *FileStoreListResponse) GetSignature() []byte

func (*FileStoreListResponse) Marshal

func (m *FileStoreListResponse) Marshal() (dAtA []byte, err error)

func (*FileStoreListResponse) MarshalTo

func (m *FileStoreListResponse) MarshalTo(dAtA []byte) (int, error)

func (*FileStoreListResponse) MarshalToSizedBuffer

func (m *FileStoreListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileStoreListResponse) ProtoMessage

func (*FileStoreListResponse) ProtoMessage()

func (*FileStoreListResponse) Reset

func (m *FileStoreListResponse) Reset()

func (*FileStoreListResponse) Size

func (m *FileStoreListResponse) Size() (n int)

func (*FileStoreListResponse) String

func (m *FileStoreListResponse) String() string

func (*FileStoreListResponse) Unmarshal

func (m *FileStoreListResponse) Unmarshal(dAtA []byte) error

func (*FileStoreListResponse) XXX_DiscardUnknown

func (m *FileStoreListResponse) XXX_DiscardUnknown()

func (*FileStoreListResponse) XXX_Marshal

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

func (*FileStoreListResponse) XXX_Merge

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

func (*FileStoreListResponse) XXX_MessageName

func (*FileStoreListResponse) XXX_MessageName() string

func (*FileStoreListResponse) XXX_Size

func (m *FileStoreListResponse) XXX_Size() int

func (*FileStoreListResponse) XXX_Unmarshal

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

type FileStoreMeta

type FileStoreMeta struct {
	//file store meta prepared by renter, will not changed after proposal
	RenterPid                  string    `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	FileHash                   string    `protobuf:"bytes,2,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	FileSize                   int64     `protobuf:"varint,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty" pg:"file_size"`
	RentStart                  time.Time `protobuf:"bytes,4,opt,name=rent_start,json=rentStart,proto3,stdtime" json:"rent_start" pg:"rent_start"`
	RentEnd                    time.Time `protobuf:"bytes,5,opt,name=rent_end,json=rentEnd,proto3,stdtime" json:"rent_end" pg:"rent_end"`
	CheckFrequency             int32     `protobuf:"varint,6,opt,name=check_frequency,json=checkFrequency,proto3" json:"check_frequency,omitempty" pg:"check_frequency"`
	GuardFee                   int64     `protobuf:"varint,7,opt,name=guard_fee,json=guardFee,proto3" json:"guard_fee,omitempty" pg:"guard_fee"`
	EscrowFee                  int64     `protobuf:"varint,8,opt,name=escrow_fee,json=escrowFee,proto3" json:"escrow_fee,omitempty" pg:"escrow_fee"`
	ShardCount                 int32     `protobuf:"varint,9,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty" pg:"shard_count"`
	MinimumShards              int32     `protobuf:"varint,10,opt,name=minimum_shards,json=minimumShards,proto3" json:"minimum_shards,omitempty" pg:"minimum_shards"`
	RecoverThreshold           int32     `` /* 134-byte string literal not displayed */
	EscrowPid                  string    `protobuf:"bytes,12,opt,name=escrow_pid,json=escrowPid,proto3" json:"escrow_pid,omitempty" pg:"escrow_pid"`
	GuardPid                   string    `protobuf:"bytes,13,opt,name=guard_pid,json=guardPid,proto3" json:"guard_pid,omitempty" pg:"guard_pid"`
	WarnChallengeTimesLimit    int32     `` /* 168-byte string literal not displayed */
	SuccessChallengeTimesLimit int32     `` /* 180-byte string literal not displayed */
	CheckFrequencyWarn         int32     `` /* 145-byte string literal not displayed */
	Token                      string    `protobuf:"bytes,17,opt,name=token,proto3" json:"token,omitempty" pg:"token"`
	XXX_NoUnkeyedLiteral       struct{}  `json:"-" pg:"-"`
	XXX_unrecognized           []byte    `json:"-" pg:"-"`
	XXX_sizecache              int32     `json:"-" pg:"-"`
}

func NewPopulatedFileStoreMeta

func NewPopulatedFileStoreMeta(r randyGuard, easy bool) *FileStoreMeta

func (*FileStoreMeta) Descriptor

func (*FileStoreMeta) Descriptor() ([]byte, []int)

func (*FileStoreMeta) GetCheckFrequency

func (m *FileStoreMeta) GetCheckFrequency() int32

func (*FileStoreMeta) GetCheckFrequencyWarn

func (m *FileStoreMeta) GetCheckFrequencyWarn() int32

func (*FileStoreMeta) GetEscrowFee

func (m *FileStoreMeta) GetEscrowFee() int64

func (*FileStoreMeta) GetEscrowPid

func (m *FileStoreMeta) GetEscrowPid() string

func (*FileStoreMeta) GetFileHash

func (m *FileStoreMeta) GetFileHash() string

func (*FileStoreMeta) GetFileSize

func (m *FileStoreMeta) GetFileSize() int64

func (*FileStoreMeta) GetGuardFee

func (m *FileStoreMeta) GetGuardFee() int64

func (*FileStoreMeta) GetGuardPid

func (m *FileStoreMeta) GetGuardPid() string

func (*FileStoreMeta) GetMinimumShards

func (m *FileStoreMeta) GetMinimumShards() int32

func (*FileStoreMeta) GetRecoverThreshold

func (m *FileStoreMeta) GetRecoverThreshold() int32

func (*FileStoreMeta) GetRentEnd

func (m *FileStoreMeta) GetRentEnd() time.Time

func (*FileStoreMeta) GetRentStart

func (m *FileStoreMeta) GetRentStart() time.Time

func (*FileStoreMeta) GetRenterPid

func (m *FileStoreMeta) GetRenterPid() string

func (*FileStoreMeta) GetShardCount

func (m *FileStoreMeta) GetShardCount() int32

func (*FileStoreMeta) GetSuccessChallengeTimesLimit

func (m *FileStoreMeta) GetSuccessChallengeTimesLimit() int32

func (*FileStoreMeta) GetToken

func (m *FileStoreMeta) GetToken() string

func (*FileStoreMeta) GetWarnChallengeTimesLimit

func (m *FileStoreMeta) GetWarnChallengeTimesLimit() int32

func (*FileStoreMeta) Marshal

func (m *FileStoreMeta) Marshal() (dAtA []byte, err error)

func (*FileStoreMeta) MarshalTo

func (m *FileStoreMeta) MarshalTo(dAtA []byte) (int, error)

func (*FileStoreMeta) MarshalToSizedBuffer

func (m *FileStoreMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileStoreMeta) ProtoMessage

func (*FileStoreMeta) ProtoMessage()

func (*FileStoreMeta) Reset

func (m *FileStoreMeta) Reset()

func (*FileStoreMeta) Size

func (m *FileStoreMeta) Size() (n int)

func (*FileStoreMeta) String

func (m *FileStoreMeta) String() string

func (*FileStoreMeta) Unmarshal

func (m *FileStoreMeta) Unmarshal(dAtA []byte) error

func (*FileStoreMeta) XXX_DiscardUnknown

func (m *FileStoreMeta) XXX_DiscardUnknown()

func (*FileStoreMeta) XXX_Marshal

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

func (*FileStoreMeta) XXX_Merge

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

func (*FileStoreMeta) XXX_MessageName

func (*FileStoreMeta) XXX_MessageName() string

func (*FileStoreMeta) XXX_Size

func (m *FileStoreMeta) XXX_Size() int

func (*FileStoreMeta) XXX_Unmarshal

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

type FileStoreStatus

type FileStoreStatus struct {
	FileStoreMeta        ``                          /* 138-byte string literal not displayed */
	State                FileStoreStatus_MetaState   `protobuf:"varint,2,opt,name=state,proto3,enum=guard.FileStoreStatus_MetaState" json:"state,omitempty" pg:"state"`
	Contracts            []*Contract                 `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty" pg:"-"`
	RenterSignature      []byte                      `` /* 128-byte string literal not displayed */
	GuardReceiveTime     time.Time                   `` /* 133-byte string literal not displayed */
	ChangeLog            []*Log                      `protobuf:"bytes,6,rep,name=change_log,json=changeLog,proto3" json:"change_log,omitempty" pg:"-"`
	CurrentTime          time.Time                   `protobuf:"bytes,7,opt,name=current_time,json=currentTime,proto3,stdtime" json:"current_time" pg:"current_time"`
	GuardSignature       []byte                      `protobuf:"bytes,8,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	RentalState          FileStoreStatus_RentalState `` /* 152-byte string literal not displayed */
	PreparerPid          string                      `protobuf:"bytes,10,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	PreparerSignature    []byte                      `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                    `json:"-" pg:"-"`
	XXX_unrecognized     []byte                      `json:"-" pg:"-"`
	XXX_sizecache        int32                       `json:"-" pg:"-"`
}

func NewPopulatedFileStoreStatus

func NewPopulatedFileStoreStatus(r randyGuard, easy bool) *FileStoreStatus

func (*FileStoreStatus) Descriptor

func (*FileStoreStatus) Descriptor() ([]byte, []int)

func (*FileStoreStatus) GetChangeLog

func (m *FileStoreStatus) GetChangeLog() []*Log

func (*FileStoreStatus) GetContracts

func (m *FileStoreStatus) GetContracts() []*Contract

func (*FileStoreStatus) GetCurrentTime

func (m *FileStoreStatus) GetCurrentTime() time.Time

func (*FileStoreStatus) GetGuardReceiveTime

func (m *FileStoreStatus) GetGuardReceiveTime() time.Time

func (*FileStoreStatus) GetGuardSignature

func (m *FileStoreStatus) GetGuardSignature() []byte

func (*FileStoreStatus) GetPreparerPid

func (m *FileStoreStatus) GetPreparerPid() string

func (*FileStoreStatus) GetPreparerSignature

func (m *FileStoreStatus) GetPreparerSignature() []byte

func (*FileStoreStatus) GetRentalState

func (m *FileStoreStatus) GetRentalState() FileStoreStatus_RentalState

func (*FileStoreStatus) GetRenterSignature

func (m *FileStoreStatus) GetRenterSignature() []byte

func (*FileStoreStatus) GetState

func (*FileStoreStatus) Marshal

func (m *FileStoreStatus) Marshal() (dAtA []byte, err error)

func (*FileStoreStatus) MarshalTo

func (m *FileStoreStatus) MarshalTo(dAtA []byte) (int, error)

func (*FileStoreStatus) MarshalToSizedBuffer

func (m *FileStoreStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileStoreStatus) ProtoMessage

func (*FileStoreStatus) ProtoMessage()

func (*FileStoreStatus) Reset

func (m *FileStoreStatus) Reset()

func (*FileStoreStatus) Size

func (m *FileStoreStatus) Size() (n int)

func (*FileStoreStatus) String

func (m *FileStoreStatus) String() string

func (*FileStoreStatus) Unmarshal

func (m *FileStoreStatus) Unmarshal(dAtA []byte) error

func (*FileStoreStatus) XXX_DiscardUnknown

func (m *FileStoreStatus) XXX_DiscardUnknown()

func (*FileStoreStatus) XXX_Marshal

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

func (*FileStoreStatus) XXX_Merge

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

func (*FileStoreStatus) XXX_MessageName

func (*FileStoreStatus) XXX_MessageName() string

func (*FileStoreStatus) XXX_Size

func (m *FileStoreStatus) XXX_Size() int

func (*FileStoreStatus) XXX_Unmarshal

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

type FileStoreStatus_MetaState

type FileStoreStatus_MetaState int32
const (
	FileStoreStatus_DRAFT        FileStoreStatus_MetaState = 0
	FileStoreStatus_UPLOADING    FileStoreStatus_MetaState = 1
	FileStoreStatus_RUNNING      FileStoreStatus_MetaState = 2
	FileStoreStatus_PARTIAL_LOST FileStoreStatus_MetaState = 3
	FileStoreStatus_LOST         FileStoreStatus_MetaState = 4
	FileStoreStatus_DONE         FileStoreStatus_MetaState = 5
	FileStoreStatus_CANCELED     FileStoreStatus_MetaState = 6
	FileStoreStatus_RECREATED    FileStoreStatus_MetaState = 7
)

func (FileStoreStatus_MetaState) EnumDescriptor

func (FileStoreStatus_MetaState) EnumDescriptor() ([]byte, []int)

func (FileStoreStatus_MetaState) String

func (x FileStoreStatus_MetaState) String() string

type FileStoreStatus_RentalState

type FileStoreStatus_RentalState int32
const (
	FileStoreStatus_NEW         FileStoreStatus_RentalState = 0
	FileStoreStatus_PARTIAL_NEW FileStoreStatus_RentalState = 1
	FileStoreStatus_EXPIRED     FileStoreStatus_RentalState = 2
	FileStoreStatus_RENEW       FileStoreStatus_RentalState = 3
	FileStoreStatus_RECREATE    FileStoreStatus_RentalState = 4
)

func (FileStoreStatus_RentalState) EnumDescriptor

func (FileStoreStatus_RentalState) EnumDescriptor() ([]byte, []int)

func (FileStoreStatus_RentalState) String

type ForceRepairRequest

type ForceRepairRequest struct {
	RenterPid            string   `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	FileHash             string   `protobuf:"bytes,2,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	AuthPid              string   `protobuf:"bytes,3,opt,name=auth_pid,json=authPid,proto3" json:"auth_pid,omitempty" pg:"auth_pid"`
	Signature            []byte   `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedForceRepairRequest

func NewPopulatedForceRepairRequest(r randyGuard, easy bool) *ForceRepairRequest

func (*ForceRepairRequest) Descriptor

func (*ForceRepairRequest) Descriptor() ([]byte, []int)

func (*ForceRepairRequest) GetAuthPid

func (m *ForceRepairRequest) GetAuthPid() string

func (*ForceRepairRequest) GetFileHash

func (m *ForceRepairRequest) GetFileHash() string

func (*ForceRepairRequest) GetRenterPid

func (m *ForceRepairRequest) GetRenterPid() string

func (*ForceRepairRequest) GetSignature

func (m *ForceRepairRequest) GetSignature() []byte

func (*ForceRepairRequest) Marshal

func (m *ForceRepairRequest) Marshal() (dAtA []byte, err error)

func (*ForceRepairRequest) MarshalTo

func (m *ForceRepairRequest) MarshalTo(dAtA []byte) (int, error)

func (*ForceRepairRequest) MarshalToSizedBuffer

func (m *ForceRepairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ForceRepairRequest) ProtoMessage

func (*ForceRepairRequest) ProtoMessage()

func (*ForceRepairRequest) Reset

func (m *ForceRepairRequest) Reset()

func (*ForceRepairRequest) Size

func (m *ForceRepairRequest) Size() (n int)

func (*ForceRepairRequest) String

func (m *ForceRepairRequest) String() string

func (*ForceRepairRequest) Unmarshal

func (m *ForceRepairRequest) Unmarshal(dAtA []byte) error

func (*ForceRepairRequest) XXX_DiscardUnknown

func (m *ForceRepairRequest) XXX_DiscardUnknown()

func (*ForceRepairRequest) XXX_Marshal

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

func (*ForceRepairRequest) XXX_Merge

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

func (*ForceRepairRequest) XXX_MessageName

func (*ForceRepairRequest) XXX_MessageName() string

func (*ForceRepairRequest) XXX_Size

func (m *ForceRepairRequest) XXX_Size() int

func (*ForceRepairRequest) XXX_Unmarshal

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

type GuardServiceClient

type GuardServiceClient interface {
	SubmitFileStoreMeta(ctx context.Context, in *FileStoreStatus, opts ...grpc.CallOption) (*Result, error)
	SendQuestions(ctx context.Context, in *FileChallengeQuestions, opts ...grpc.CallOption) (*Result, error)
	CheckFileStoreMeta(ctx context.Context, in *CheckFileStoreMetaRequest, opts ...grpc.CallOption) (*FileStoreStatus, error)
	ReadyForChallenge(ctx context.Context, in *ReadyForChallengeRequest, opts ...grpc.CallOption) (*Result, error)
	ForceRepair(ctx context.Context, in *ForceRepairRequest, opts ...grpc.CallOption) (*Result, error)
	ListHostContracts(ctx context.Context, in *ListHostContractsRequest, opts ...grpc.CallOption) (*ContractsList, error)
	RetrieveFileInfo(ctx context.Context, in *ListRenterFileInfoRequest, opts ...grpc.CallOption) (*FileStoreListResponse, error)
	RequestChallenge(ctx context.Context, in *ReadyForChallengeRequest, opts ...grpc.CallOption) (*RequestChallengeQuestion, error)
	ResponseChallenge(ctx context.Context, in *ResponseChallengeQuestion, opts ...grpc.CallOption) (*Result, error)
	SubmitRepairContract(ctx context.Context, in *RepairContract, opts ...grpc.CallOption) (*RepairContractResponse, error)
	RequestForRepairContracts(ctx context.Context, in *RequestRepairContracts, opts ...grpc.CallOption) (*ResponseRepairContracts, error)
	ReportFailToDownload(ctx context.Context, in *CancelContractRequest, opts ...grpc.CallOption) (*Result, error)
	//used for decentral challenge
	RequestForChallengeJob(ctx context.Context, in *ChallengeJobRequest, opts ...grpc.CallOption) (*ChallengeJobResponse, error)
	SubmitChallengeJobResult(ctx context.Context, in *ChallengeJobResult, opts ...grpc.CallOption) (*Result, error)
	//used by btfs scan
	AdminGetDailySummary(ctx context.Context, in *AdminQuery, opts ...grpc.CallOption) (*DailySummary, error)
	AdminGetDailyHostsRankNew(ctx context.Context, in *AdminQuery, opts ...grpc.CallOption) (*HostSummary, error)
	AdminGetDailyHostsRankTotal(ctx context.Context, in *AdminQuery, opts ...grpc.CallOption) (*HostSummary, error)
	AdminGetDailyTotalState(ctx context.Context, in *AdminQuery, opts ...grpc.CallOption) (*TotalStateSummary, error)
}

GuardServiceClient is the client API for GuardService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGuardServiceClient

func NewGuardServiceClient(cc *grpc.ClientConn) GuardServiceClient

type GuardServiceServer

type GuardServiceServer interface {
	SubmitFileStoreMeta(context.Context, *FileStoreStatus) (*Result, error)
	SendQuestions(context.Context, *FileChallengeQuestions) (*Result, error)
	CheckFileStoreMeta(context.Context, *CheckFileStoreMetaRequest) (*FileStoreStatus, error)
	ReadyForChallenge(context.Context, *ReadyForChallengeRequest) (*Result, error)
	ForceRepair(context.Context, *ForceRepairRequest) (*Result, error)
	ListHostContracts(context.Context, *ListHostContractsRequest) (*ContractsList, error)
	RetrieveFileInfo(context.Context, *ListRenterFileInfoRequest) (*FileStoreListResponse, error)
	RequestChallenge(context.Context, *ReadyForChallengeRequest) (*RequestChallengeQuestion, error)
	ResponseChallenge(context.Context, *ResponseChallengeQuestion) (*Result, error)
	SubmitRepairContract(context.Context, *RepairContract) (*RepairContractResponse, error)
	RequestForRepairContracts(context.Context, *RequestRepairContracts) (*ResponseRepairContracts, error)
	ReportFailToDownload(context.Context, *CancelContractRequest) (*Result, error)
	//used for decentral challenge
	RequestForChallengeJob(context.Context, *ChallengeJobRequest) (*ChallengeJobResponse, error)
	SubmitChallengeJobResult(context.Context, *ChallengeJobResult) (*Result, error)
	//used by btfs scan
	AdminGetDailySummary(context.Context, *AdminQuery) (*DailySummary, error)
	AdminGetDailyHostsRankNew(context.Context, *AdminQuery) (*HostSummary, error)
	AdminGetDailyHostsRankTotal(context.Context, *AdminQuery) (*HostSummary, error)
	AdminGetDailyTotalState(context.Context, *AdminQuery) (*TotalStateSummary, error)
}

GuardServiceServer is the server API for GuardService service.

type HostStatus

type HostStatus struct {
	HostPid              string   `protobuf:"bytes,1,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	FileSize             int64    `protobuf:"varint,2,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty" pg:"file_size"`
	WorkAmount           int64    `protobuf:"varint,3,opt,name=work_amount,json=workAmount,proto3" json:"work_amount,omitempty" pg:"work_amount"`
	RewardBtt            int64    `protobuf:"varint,4,opt,name=reward_btt,json=rewardBtt,proto3" json:"reward_btt,omitempty" pg:"reward_btt"`
	SuspectCheat         bool     `protobuf:"varint,5,opt,name=suspect_cheat,json=suspectCheat,proto3" json:"suspect_cheat,omitempty" pg:"suspect_cheat"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedHostStatus

func NewPopulatedHostStatus(r randyGuard, easy bool) *HostStatus

func (*HostStatus) Descriptor

func (*HostStatus) Descriptor() ([]byte, []int)

func (*HostStatus) GetFileSize

func (m *HostStatus) GetFileSize() int64

func (*HostStatus) GetHostPid

func (m *HostStatus) GetHostPid() string

func (*HostStatus) GetRewardBtt

func (m *HostStatus) GetRewardBtt() int64

func (*HostStatus) GetSuspectCheat

func (m *HostStatus) GetSuspectCheat() bool

func (*HostStatus) GetWorkAmount

func (m *HostStatus) GetWorkAmount() int64

func (*HostStatus) Marshal

func (m *HostStatus) Marshal() (dAtA []byte, err error)

func (*HostStatus) MarshalTo

func (m *HostStatus) MarshalTo(dAtA []byte) (int, error)

func (*HostStatus) MarshalToSizedBuffer

func (m *HostStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostStatus) ProtoMessage

func (*HostStatus) ProtoMessage()

func (*HostStatus) Reset

func (m *HostStatus) Reset()

func (*HostStatus) Size

func (m *HostStatus) Size() (n int)

func (*HostStatus) String

func (m *HostStatus) String() string

func (*HostStatus) Unmarshal

func (m *HostStatus) Unmarshal(dAtA []byte) error

func (*HostStatus) XXX_DiscardUnknown

func (m *HostStatus) XXX_DiscardUnknown()

func (*HostStatus) XXX_Marshal

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

func (*HostStatus) XXX_Merge

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

func (*HostStatus) XXX_MessageName

func (*HostStatus) XXX_MessageName() string

func (*HostStatus) XXX_Size

func (m *HostStatus) XXX_Size() int

func (*HostStatus) XXX_Unmarshal

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

type HostSummary

type HostSummary struct {
	QueryDate            time.Time     `protobuf:"bytes,1,opt,name=query_date,json=queryDate,proto3,stdtime" json:"query_date" pg:"query_date"`
	ResponseTime         time.Time     `protobuf:"bytes,2,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time" pg:"response_time"`
	PreparerPid          string        `protobuf:"bytes,3,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	Signature            []byte        `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	RecordCount          int32         `protobuf:"varint,5,opt,name=record_count,json=recordCount,proto3" json:"record_count,omitempty" pg:"record_count"`
	Status               []*HostStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty" pg:"status"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-" pg:"-"`
	XXX_unrecognized     []byte        `json:"-" pg:"-"`
	XXX_sizecache        int32         `json:"-" pg:"-"`
}

func NewPopulatedHostSummary

func NewPopulatedHostSummary(r randyGuard, easy bool) *HostSummary

func (*HostSummary) Descriptor

func (*HostSummary) Descriptor() ([]byte, []int)

func (*HostSummary) GetPreparerPid

func (m *HostSummary) GetPreparerPid() string

func (*HostSummary) GetQueryDate

func (m *HostSummary) GetQueryDate() time.Time

func (*HostSummary) GetRecordCount

func (m *HostSummary) GetRecordCount() int32

func (*HostSummary) GetResponseTime

func (m *HostSummary) GetResponseTime() time.Time

func (*HostSummary) GetSignature

func (m *HostSummary) GetSignature() []byte

func (*HostSummary) GetStatus

func (m *HostSummary) GetStatus() []*HostStatus

func (*HostSummary) Marshal

func (m *HostSummary) Marshal() (dAtA []byte, err error)

func (*HostSummary) MarshalTo

func (m *HostSummary) MarshalTo(dAtA []byte) (int, error)

func (*HostSummary) MarshalToSizedBuffer

func (m *HostSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostSummary) ProtoMessage

func (*HostSummary) ProtoMessage()

func (*HostSummary) Reset

func (m *HostSummary) Reset()

func (*HostSummary) Size

func (m *HostSummary) Size() (n int)

func (*HostSummary) String

func (m *HostSummary) String() string

func (*HostSummary) Unmarshal

func (m *HostSummary) Unmarshal(dAtA []byte) error

func (*HostSummary) XXX_DiscardUnknown

func (m *HostSummary) XXX_DiscardUnknown()

func (*HostSummary) XXX_Marshal

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

func (*HostSummary) XXX_Merge

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

func (*HostSummary) XXX_MessageName

func (*HostSummary) XXX_MessageName() string

func (*HostSummary) XXX_Size

func (m *HostSummary) XXX_Size() int

func (*HostSummary) XXX_Unmarshal

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

type ListHostContractsRequest

type ListHostContractsRequest struct {
	HostPid              string                               `protobuf:"bytes,1,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	RequesterPid         string                               `protobuf:"bytes,2,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	RequestPageSize      int32                                `` /* 132-byte string literal not displayed */
	RequestPageIndex     int32                                `` /* 136-byte string literal not displayed */
	LastModifyTimeSince  *time.Time                           `` /* 158-byte string literal not displayed */
	LastModifyTimeTo     *time.Time                           `` /* 146-byte string literal not displayed */
	State                ListHostContractsRequest_SelectState `protobuf:"varint,7,opt,name=state,proto3,enum=guard.ListHostContractsRequest_SelectState" json:"state,omitempty" pg:"state"`
	RequestTime          *time.Time                           `protobuf:"bytes,8,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time,omitempty" pg:"request_time"`
	Signature            []byte                               `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-" pg:"-"`
	XXX_unrecognized     []byte                               `json:"-" pg:"-"`
	XXX_sizecache        int32                                `json:"-" pg:"-"`
}

func NewPopulatedListHostContractsRequest

func NewPopulatedListHostContractsRequest(r randyGuard, easy bool) *ListHostContractsRequest

func (*ListHostContractsRequest) Descriptor

func (*ListHostContractsRequest) Descriptor() ([]byte, []int)

func (*ListHostContractsRequest) GetHostPid

func (m *ListHostContractsRequest) GetHostPid() string

func (*ListHostContractsRequest) GetLastModifyTimeSince

func (m *ListHostContractsRequest) GetLastModifyTimeSince() *time.Time

func (*ListHostContractsRequest) GetLastModifyTimeTo

func (m *ListHostContractsRequest) GetLastModifyTimeTo() *time.Time

func (*ListHostContractsRequest) GetRequestPageIndex

func (m *ListHostContractsRequest) GetRequestPageIndex() int32

func (*ListHostContractsRequest) GetRequestPageSize

func (m *ListHostContractsRequest) GetRequestPageSize() int32

func (*ListHostContractsRequest) GetRequestTime

func (m *ListHostContractsRequest) GetRequestTime() *time.Time

func (*ListHostContractsRequest) GetRequesterPid

func (m *ListHostContractsRequest) GetRequesterPid() string

func (*ListHostContractsRequest) GetSignature

func (m *ListHostContractsRequest) GetSignature() []byte

func (*ListHostContractsRequest) GetState

func (*ListHostContractsRequest) Marshal

func (m *ListHostContractsRequest) Marshal() (dAtA []byte, err error)

func (*ListHostContractsRequest) MarshalTo

func (m *ListHostContractsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListHostContractsRequest) MarshalToSizedBuffer

func (m *ListHostContractsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListHostContractsRequest) ProtoMessage

func (*ListHostContractsRequest) ProtoMessage()

func (*ListHostContractsRequest) Reset

func (m *ListHostContractsRequest) Reset()

func (*ListHostContractsRequest) Size

func (m *ListHostContractsRequest) Size() (n int)

func (*ListHostContractsRequest) String

func (m *ListHostContractsRequest) String() string

func (*ListHostContractsRequest) Unmarshal

func (m *ListHostContractsRequest) Unmarshal(dAtA []byte) error

func (*ListHostContractsRequest) XXX_DiscardUnknown

func (m *ListHostContractsRequest) XXX_DiscardUnknown()

func (*ListHostContractsRequest) XXX_Marshal

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

func (*ListHostContractsRequest) XXX_Merge

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

func (*ListHostContractsRequest) XXX_MessageName

func (*ListHostContractsRequest) XXX_MessageName() string

func (*ListHostContractsRequest) XXX_Size

func (m *ListHostContractsRequest) XXX_Size() int

func (*ListHostContractsRequest) XXX_Unmarshal

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

type ListHostContractsRequest_SelectState

type ListHostContractsRequest_SelectState int32
const (
	ListHostContractsRequest_ALL    ListHostContractsRequest_SelectState = 0
	ListHostContractsRequest_ACTIVE ListHostContractsRequest_SelectState = 1
	ListHostContractsRequest_CLOSED ListHostContractsRequest_SelectState = 2
)

func (ListHostContractsRequest_SelectState) EnumDescriptor

func (ListHostContractsRequest_SelectState) EnumDescriptor() ([]byte, []int)

func (ListHostContractsRequest_SelectState) String

type ListRenterFileInfoRequest

type ListRenterFileInfoRequest struct {
	RenterPid            string     `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	RequesterPid         string     `protobuf:"bytes,2,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	RequestPageSize      int32      `` /* 132-byte string literal not displayed */
	RequestPageIndex     int32      `` /* 136-byte string literal not displayed */
	RequestTime          *time.Time `protobuf:"bytes,5,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time,omitempty" pg:"request_time"`
	LastModifyTime       *time.Time `` /* 135-byte string literal not displayed */
	Signature            []byte     `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-" pg:"-"`
	XXX_unrecognized     []byte     `json:"-" pg:"-"`
	XXX_sizecache        int32      `json:"-" pg:"-"`
}

func NewPopulatedListRenterFileInfoRequest

func NewPopulatedListRenterFileInfoRequest(r randyGuard, easy bool) *ListRenterFileInfoRequest

func (*ListRenterFileInfoRequest) Descriptor

func (*ListRenterFileInfoRequest) Descriptor() ([]byte, []int)

func (*ListRenterFileInfoRequest) GetLastModifyTime

func (m *ListRenterFileInfoRequest) GetLastModifyTime() *time.Time

func (*ListRenterFileInfoRequest) GetRenterPid

func (m *ListRenterFileInfoRequest) GetRenterPid() string

func (*ListRenterFileInfoRequest) GetRequestPageIndex

func (m *ListRenterFileInfoRequest) GetRequestPageIndex() int32

func (*ListRenterFileInfoRequest) GetRequestPageSize

func (m *ListRenterFileInfoRequest) GetRequestPageSize() int32

func (*ListRenterFileInfoRequest) GetRequestTime

func (m *ListRenterFileInfoRequest) GetRequestTime() *time.Time

func (*ListRenterFileInfoRequest) GetRequesterPid

func (m *ListRenterFileInfoRequest) GetRequesterPid() string

func (*ListRenterFileInfoRequest) GetSignature

func (m *ListRenterFileInfoRequest) GetSignature() []byte

func (*ListRenterFileInfoRequest) Marshal

func (m *ListRenterFileInfoRequest) Marshal() (dAtA []byte, err error)

func (*ListRenterFileInfoRequest) MarshalTo

func (m *ListRenterFileInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListRenterFileInfoRequest) MarshalToSizedBuffer

func (m *ListRenterFileInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListRenterFileInfoRequest) ProtoMessage

func (*ListRenterFileInfoRequest) ProtoMessage()

func (*ListRenterFileInfoRequest) Reset

func (m *ListRenterFileInfoRequest) Reset()

func (*ListRenterFileInfoRequest) Size

func (m *ListRenterFileInfoRequest) Size() (n int)

func (*ListRenterFileInfoRequest) String

func (m *ListRenterFileInfoRequest) String() string

func (*ListRenterFileInfoRequest) Unmarshal

func (m *ListRenterFileInfoRequest) Unmarshal(dAtA []byte) error

func (*ListRenterFileInfoRequest) XXX_DiscardUnknown

func (m *ListRenterFileInfoRequest) XXX_DiscardUnknown()

func (*ListRenterFileInfoRequest) XXX_Marshal

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

func (*ListRenterFileInfoRequest) XXX_Merge

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

func (*ListRenterFileInfoRequest) XXX_MessageName

func (*ListRenterFileInfoRequest) XXX_MessageName() string

func (*ListRenterFileInfoRequest) XXX_Size

func (m *ListRenterFileInfoRequest) XXX_Size() int

func (*ListRenterFileInfoRequest) XXX_Unmarshal

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

type Log

type Log struct {
	ChangeTime           time.Time `protobuf:"bytes,1,opt,name=change_time,json=changeTime,proto3,stdtime" json:"change_time" pg:"change_time"`
	OriginatorPid        string    `protobuf:"bytes,2,opt,name=originator_pid,json=originatorPid,proto3" json:"originator_pid,omitempty" pg:"originator_pid"`
	Change               string    `protobuf:"bytes,3,opt,name=change,proto3" json:"change,omitempty" pg:"change"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedLog

func NewPopulatedLog(r randyGuard, easy bool) *Log

func (*Log) Descriptor

func (*Log) Descriptor() ([]byte, []int)

func (*Log) GetChange

func (m *Log) GetChange() string

func (*Log) GetChangeTime

func (m *Log) GetChangeTime() time.Time

func (*Log) GetOriginatorPid

func (m *Log) GetOriginatorPid() string

func (*Log) Marshal

func (m *Log) Marshal() (dAtA []byte, err error)

func (*Log) MarshalTo

func (m *Log) MarshalTo(dAtA []byte) (int, error)

func (*Log) MarshalToSizedBuffer

func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) Size

func (m *Log) Size() (n int)

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal

func (m *Log) Unmarshal(dAtA []byte) error

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

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

func (*Log) XXX_Merge

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

func (*Log) XXX_MessageName

func (*Log) XXX_MessageName() string

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

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

type ProofOfReplicateChallenge

type ProofOfReplicateChallenge struct {
	ChallengeQuestion    `protobuf:"bytes,1,opt,name=question,proto3,embedded=question" json:"question" pg:"question"`
	ChallengeTime        time.Time `protobuf:"bytes,2,opt,name=challenge_time,json=challengeTime,proto3,stdtime" json:"challenge_time" pg:"challenge_time"`
	GuardPid             string    `protobuf:"bytes,3,opt,name=guard_pid,json=guardPid,proto3" json:"guard_pid,omitempty" pg:"guard_pid"`
	GuardSignature       []byte    `protobuf:"bytes,4,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	HostAnswer           string    `protobuf:"bytes,5,opt,name=host_answer,json=hostAnswer,proto3" json:"host_answer,omitempty" pg:"host_answer"`
	HostSignTime         time.Time `protobuf:"bytes,6,opt,name=host_sign_time,json=hostSignTime,proto3,stdtime" json:"host_sign_time" pg:"host_sign_time"`
	HostSignature        []byte    `protobuf:"bytes,7,opt,name=host_signature,json=hostSignature,proto3" json:"host_signature,omitempty" pg:"host_signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedProofOfReplicateChallenge

func NewPopulatedProofOfReplicateChallenge(r randyGuard, easy bool) *ProofOfReplicateChallenge

func (*ProofOfReplicateChallenge) Descriptor

func (*ProofOfReplicateChallenge) Descriptor() ([]byte, []int)

func (*ProofOfReplicateChallenge) GetChallengeTime

func (m *ProofOfReplicateChallenge) GetChallengeTime() time.Time

func (*ProofOfReplicateChallenge) GetGuardPid

func (m *ProofOfReplicateChallenge) GetGuardPid() string

func (*ProofOfReplicateChallenge) GetGuardSignature

func (m *ProofOfReplicateChallenge) GetGuardSignature() []byte

func (*ProofOfReplicateChallenge) GetHostAnswer

func (m *ProofOfReplicateChallenge) GetHostAnswer() string

func (*ProofOfReplicateChallenge) GetHostSignTime

func (m *ProofOfReplicateChallenge) GetHostSignTime() time.Time

func (*ProofOfReplicateChallenge) GetHostSignature

func (m *ProofOfReplicateChallenge) GetHostSignature() []byte

func (*ProofOfReplicateChallenge) Marshal

func (m *ProofOfReplicateChallenge) Marshal() (dAtA []byte, err error)

func (*ProofOfReplicateChallenge) MarshalTo

func (m *ProofOfReplicateChallenge) MarshalTo(dAtA []byte) (int, error)

func (*ProofOfReplicateChallenge) MarshalToSizedBuffer

func (m *ProofOfReplicateChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProofOfReplicateChallenge) ProtoMessage

func (*ProofOfReplicateChallenge) ProtoMessage()

func (*ProofOfReplicateChallenge) Reset

func (m *ProofOfReplicateChallenge) Reset()

func (*ProofOfReplicateChallenge) Size

func (m *ProofOfReplicateChallenge) Size() (n int)

func (*ProofOfReplicateChallenge) String

func (m *ProofOfReplicateChallenge) String() string

func (*ProofOfReplicateChallenge) Unmarshal

func (m *ProofOfReplicateChallenge) Unmarshal(dAtA []byte) error

func (*ProofOfReplicateChallenge) XXX_DiscardUnknown

func (m *ProofOfReplicateChallenge) XXX_DiscardUnknown()

func (*ProofOfReplicateChallenge) XXX_Marshal

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

func (*ProofOfReplicateChallenge) XXX_Merge

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

func (*ProofOfReplicateChallenge) XXX_MessageName

func (*ProofOfReplicateChallenge) XXX_MessageName() string

func (*ProofOfReplicateChallenge) XXX_Size

func (m *ProofOfReplicateChallenge) XXX_Size() int

func (*ProofOfReplicateChallenge) XXX_Unmarshal

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

type ReadyForChallengeRequest

type ReadyForChallengeRequest struct {
	RenterPid            string    `protobuf:"bytes,1,opt,name=renter_pid,json=renterPid,proto3" json:"renter_pid,omitempty" pg:"renter_pid"`
	FileHash             string    `protobuf:"bytes,2,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardHash            string    `protobuf:"bytes,3,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	ContractId           string    `protobuf:"bytes,4,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty" pg:"contract_id"`
	HostPid              string    `protobuf:"bytes,5,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	PrepareTime          time.Time `protobuf:"bytes,6,opt,name=prepare_time,json=prepareTime,proto3,stdtime" json:"prepare_time" pg:"prepare_time"`
	Signature            []byte    `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	IsRepair             bool      `protobuf:"varint,8,opt,name=is_repair,json=isRepair,proto3" json:"is_repair,omitempty" pg:"is_repair"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedReadyForChallengeRequest

func NewPopulatedReadyForChallengeRequest(r randyGuard, easy bool) *ReadyForChallengeRequest

func (*ReadyForChallengeRequest) Descriptor

func (*ReadyForChallengeRequest) Descriptor() ([]byte, []int)

func (*ReadyForChallengeRequest) GetContractId

func (m *ReadyForChallengeRequest) GetContractId() string

func (*ReadyForChallengeRequest) GetFileHash

func (m *ReadyForChallengeRequest) GetFileHash() string

func (*ReadyForChallengeRequest) GetHostPid

func (m *ReadyForChallengeRequest) GetHostPid() string

func (*ReadyForChallengeRequest) GetIsRepair

func (m *ReadyForChallengeRequest) GetIsRepair() bool

func (*ReadyForChallengeRequest) GetPrepareTime

func (m *ReadyForChallengeRequest) GetPrepareTime() time.Time

func (*ReadyForChallengeRequest) GetRenterPid

func (m *ReadyForChallengeRequest) GetRenterPid() string

func (*ReadyForChallengeRequest) GetShardHash

func (m *ReadyForChallengeRequest) GetShardHash() string

func (*ReadyForChallengeRequest) GetSignature

func (m *ReadyForChallengeRequest) GetSignature() []byte

func (*ReadyForChallengeRequest) Marshal

func (m *ReadyForChallengeRequest) Marshal() (dAtA []byte, err error)

func (*ReadyForChallengeRequest) MarshalTo

func (m *ReadyForChallengeRequest) MarshalTo(dAtA []byte) (int, error)

func (*ReadyForChallengeRequest) MarshalToSizedBuffer

func (m *ReadyForChallengeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReadyForChallengeRequest) ProtoMessage

func (*ReadyForChallengeRequest) ProtoMessage()

func (*ReadyForChallengeRequest) Reset

func (m *ReadyForChallengeRequest) Reset()

func (*ReadyForChallengeRequest) Size

func (m *ReadyForChallengeRequest) Size() (n int)

func (*ReadyForChallengeRequest) String

func (m *ReadyForChallengeRequest) String() string

func (*ReadyForChallengeRequest) Unmarshal

func (m *ReadyForChallengeRequest) Unmarshal(dAtA []byte) error

func (*ReadyForChallengeRequest) XXX_DiscardUnknown

func (m *ReadyForChallengeRequest) XXX_DiscardUnknown()

func (*ReadyForChallengeRequest) XXX_Marshal

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

func (*ReadyForChallengeRequest) XXX_Merge

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

func (*ReadyForChallengeRequest) XXX_MessageName

func (*ReadyForChallengeRequest) XXX_MessageName() string

func (*ReadyForChallengeRequest) XXX_Size

func (m *ReadyForChallengeRequest) XXX_Size() int

func (*ReadyForChallengeRequest) XXX_Unmarshal

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

type RepairContract

type RepairContract struct {
	FileHash             string    `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	LostShardHash        []string  `protobuf:"bytes,2,rep,name=lost_shard_hash,json=lostShardHash,proto3" json:"lost_shard_hash,omitempty" pg:"lost_shard_hash"`
	FileSize             int64     `protobuf:"varint,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty" pg:"file_size"`
	DownloadRewardAmount int64     `` /* 152-byte string literal not displayed */
	RepairRewardAmount   int64     `` /* 144-byte string literal not displayed */
	RepairPid            string    `protobuf:"bytes,6,opt,name=repair_pid,json=repairPid,proto3" json:"repair_pid,omitempty" pg:"repair_pid"`
	RepairSignTime       time.Time `protobuf:"bytes,7,opt,name=repair_sign_time,json=repairSignTime,proto3,stdtime" json:"repair_sign_time" pg:"repair_sign_time"`
	RepairSignature      []byte    `` /* 128-byte string literal not displayed */
	DownloadContractId   string    `` /* 143-byte string literal not displayed */
	RepairContractId     string    `` /* 136-byte string literal not displayed */
	GuardSignTime        time.Time `protobuf:"bytes,11,opt,name=guard_sign_time,json=guardSignTime,proto3,stdtime" json:"guard_sign_time" pg:"guard_sign_time"`
	GuardSignature       []byte    `protobuf:"bytes,12,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedRepairContract

func NewPopulatedRepairContract(r randyGuard, easy bool) *RepairContract

func (*RepairContract) Descriptor

func (*RepairContract) Descriptor() ([]byte, []int)

func (*RepairContract) GetDownloadContractId

func (m *RepairContract) GetDownloadContractId() string

func (*RepairContract) GetDownloadRewardAmount

func (m *RepairContract) GetDownloadRewardAmount() int64

func (*RepairContract) GetFileHash

func (m *RepairContract) GetFileHash() string

func (*RepairContract) GetFileSize

func (m *RepairContract) GetFileSize() int64

func (*RepairContract) GetGuardSignTime

func (m *RepairContract) GetGuardSignTime() time.Time

func (*RepairContract) GetGuardSignature

func (m *RepairContract) GetGuardSignature() []byte

func (*RepairContract) GetLostShardHash

func (m *RepairContract) GetLostShardHash() []string

func (*RepairContract) GetRepairContractId

func (m *RepairContract) GetRepairContractId() string

func (*RepairContract) GetRepairPid

func (m *RepairContract) GetRepairPid() string

func (*RepairContract) GetRepairRewardAmount

func (m *RepairContract) GetRepairRewardAmount() int64

func (*RepairContract) GetRepairSignTime

func (m *RepairContract) GetRepairSignTime() time.Time

func (*RepairContract) GetRepairSignature

func (m *RepairContract) GetRepairSignature() []byte

func (*RepairContract) Marshal

func (m *RepairContract) Marshal() (dAtA []byte, err error)

func (*RepairContract) MarshalTo

func (m *RepairContract) MarshalTo(dAtA []byte) (int, error)

func (*RepairContract) MarshalToSizedBuffer

func (m *RepairContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RepairContract) ProtoMessage

func (*RepairContract) ProtoMessage()

func (*RepairContract) Reset

func (m *RepairContract) Reset()

func (*RepairContract) Size

func (m *RepairContract) Size() (n int)

func (*RepairContract) String

func (m *RepairContract) String() string

func (*RepairContract) Unmarshal

func (m *RepairContract) Unmarshal(dAtA []byte) error

func (*RepairContract) XXX_DiscardUnknown

func (m *RepairContract) XXX_DiscardUnknown()

func (*RepairContract) XXX_Marshal

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

func (*RepairContract) XXX_Merge

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

func (*RepairContract) XXX_MessageName

func (*RepairContract) XXX_MessageName() string

func (*RepairContract) XXX_Size

func (m *RepairContract) XXX_Size() int

func (*RepairContract) XXX_Unmarshal

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

type RepairContractResponse

type RepairContractResponse struct {
	Contract             *RepairContract                               `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty" pg:"contract"`
	Status               RepairContractResponse_ContractResponseStatus `` /* 135-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                      `json:"-" pg:"-"`
	XXX_unrecognized     []byte                                        `json:"-" pg:"-"`
	XXX_sizecache        int32                                         `json:"-" pg:"-"`
}

func NewPopulatedRepairContractResponse

func NewPopulatedRepairContractResponse(r randyGuard, easy bool) *RepairContractResponse

func (*RepairContractResponse) Descriptor

func (*RepairContractResponse) Descriptor() ([]byte, []int)

func (*RepairContractResponse) GetContract

func (m *RepairContractResponse) GetContract() *RepairContract

func (*RepairContractResponse) GetStatus

func (*RepairContractResponse) Marshal

func (m *RepairContractResponse) Marshal() (dAtA []byte, err error)

func (*RepairContractResponse) MarshalTo

func (m *RepairContractResponse) MarshalTo(dAtA []byte) (int, error)

func (*RepairContractResponse) MarshalToSizedBuffer

func (m *RepairContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RepairContractResponse) ProtoMessage

func (*RepairContractResponse) ProtoMessage()

func (*RepairContractResponse) Reset

func (m *RepairContractResponse) Reset()

func (*RepairContractResponse) Size

func (m *RepairContractResponse) Size() (n int)

func (*RepairContractResponse) String

func (m *RepairContractResponse) String() string

func (*RepairContractResponse) Unmarshal

func (m *RepairContractResponse) Unmarshal(dAtA []byte) error

func (*RepairContractResponse) XXX_DiscardUnknown

func (m *RepairContractResponse) XXX_DiscardUnknown()

func (*RepairContractResponse) XXX_Marshal

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

func (*RepairContractResponse) XXX_Merge

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

func (*RepairContractResponse) XXX_MessageName

func (*RepairContractResponse) XXX_MessageName() string

func (*RepairContractResponse) XXX_Size

func (m *RepairContractResponse) XXX_Size() int

func (*RepairContractResponse) XXX_Unmarshal

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

type RepairContractResponse_ContractResponseStatus

type RepairContractResponse_ContractResponseStatus int32
const (
	RepairContractResponse_BOTH_SIGNED RepairContractResponse_ContractResponseStatus = 0
	RepairContractResponse_WAIT_LIST   RepairContractResponse_ContractResponseStatus = 1
	RepairContractResponse_REJECTED    RepairContractResponse_ContractResponseStatus = 2
)

func (RepairContractResponse_ContractResponseStatus) EnumDescriptor

func (RepairContractResponse_ContractResponseStatus) EnumDescriptor() ([]byte, []int)

func (RepairContractResponse_ContractResponseStatus) String

type RequestChallengeQuestion

type RequestChallengeQuestion struct {
	Question             *ChallengeQuestion `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty" pg:"question"`
	PrepareTime          time.Time          `protobuf:"bytes,2,opt,name=prepare_time,json=prepareTime,proto3,stdtime" json:"prepare_time" pg:"prepare_time"`
	Signature            []byte             `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	IsRepair             bool               `protobuf:"varint,4,opt,name=is_repair,json=isRepair,proto3" json:"is_repair,omitempty" pg:"is_repair"`
	FileHash             string             `protobuf:"bytes,5,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-" pg:"-"`
	XXX_unrecognized     []byte             `json:"-" pg:"-"`
	XXX_sizecache        int32              `json:"-" pg:"-"`
}

func NewPopulatedRequestChallengeQuestion

func NewPopulatedRequestChallengeQuestion(r randyGuard, easy bool) *RequestChallengeQuestion

func (*RequestChallengeQuestion) Descriptor

func (*RequestChallengeQuestion) Descriptor() ([]byte, []int)

func (*RequestChallengeQuestion) GetFileHash

func (m *RequestChallengeQuestion) GetFileHash() string

func (*RequestChallengeQuestion) GetIsRepair

func (m *RequestChallengeQuestion) GetIsRepair() bool

func (*RequestChallengeQuestion) GetPrepareTime

func (m *RequestChallengeQuestion) GetPrepareTime() time.Time

func (*RequestChallengeQuestion) GetQuestion

func (m *RequestChallengeQuestion) GetQuestion() *ChallengeQuestion

func (*RequestChallengeQuestion) GetSignature

func (m *RequestChallengeQuestion) GetSignature() []byte

func (*RequestChallengeQuestion) Marshal

func (m *RequestChallengeQuestion) Marshal() (dAtA []byte, err error)

func (*RequestChallengeQuestion) MarshalTo

func (m *RequestChallengeQuestion) MarshalTo(dAtA []byte) (int, error)

func (*RequestChallengeQuestion) MarshalToSizedBuffer

func (m *RequestChallengeQuestion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestChallengeQuestion) ProtoMessage

func (*RequestChallengeQuestion) ProtoMessage()

func (*RequestChallengeQuestion) Reset

func (m *RequestChallengeQuestion) Reset()

func (*RequestChallengeQuestion) Size

func (m *RequestChallengeQuestion) Size() (n int)

func (*RequestChallengeQuestion) String

func (m *RequestChallengeQuestion) String() string

func (*RequestChallengeQuestion) Unmarshal

func (m *RequestChallengeQuestion) Unmarshal(dAtA []byte) error

func (*RequestChallengeQuestion) XXX_DiscardUnknown

func (m *RequestChallengeQuestion) XXX_DiscardUnknown()

func (*RequestChallengeQuestion) XXX_Marshal

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

func (*RequestChallengeQuestion) XXX_Merge

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

func (*RequestChallengeQuestion) XXX_MessageName

func (*RequestChallengeQuestion) XXX_MessageName() string

func (*RequestChallengeQuestion) XXX_Size

func (m *RequestChallengeQuestion) XXX_Size() int

func (*RequestChallengeQuestion) XXX_Unmarshal

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

type RequestRepairContracts

type RequestRepairContracts struct {
	FileHash             string    `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	RepairNode           string    `protobuf:"bytes,2,opt,name=repair_node,json=repairNode,proto3" json:"repair_node,omitempty" pg:"repair_node"`
	RepairSignTime       time.Time `protobuf:"bytes,3,opt,name=repair_sign_time,json=repairSignTime,proto3,stdtime" json:"repair_sign_time" pg:"repair_sign_time"`
	RepairSignature      []byte    `` /* 128-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedRequestRepairContracts

func NewPopulatedRequestRepairContracts(r randyGuard, easy bool) *RequestRepairContracts

func (*RequestRepairContracts) Descriptor

func (*RequestRepairContracts) Descriptor() ([]byte, []int)

func (*RequestRepairContracts) GetFileHash

func (m *RequestRepairContracts) GetFileHash() string

func (*RequestRepairContracts) GetRepairNode

func (m *RequestRepairContracts) GetRepairNode() string

func (*RequestRepairContracts) GetRepairSignTime

func (m *RequestRepairContracts) GetRepairSignTime() time.Time

func (*RequestRepairContracts) GetRepairSignature

func (m *RequestRepairContracts) GetRepairSignature() []byte

func (*RequestRepairContracts) Marshal

func (m *RequestRepairContracts) Marshal() (dAtA []byte, err error)

func (*RequestRepairContracts) MarshalTo

func (m *RequestRepairContracts) MarshalTo(dAtA []byte) (int, error)

func (*RequestRepairContracts) MarshalToSizedBuffer

func (m *RequestRepairContracts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestRepairContracts) ProtoMessage

func (*RequestRepairContracts) ProtoMessage()

func (*RequestRepairContracts) Reset

func (m *RequestRepairContracts) Reset()

func (*RequestRepairContracts) Size

func (m *RequestRepairContracts) Size() (n int)

func (*RequestRepairContracts) String

func (m *RequestRepairContracts) String() string

func (*RequestRepairContracts) Unmarshal

func (m *RequestRepairContracts) Unmarshal(dAtA []byte) error

func (*RequestRepairContracts) XXX_DiscardUnknown

func (m *RequestRepairContracts) XXX_DiscardUnknown()

func (*RequestRepairContracts) XXX_Marshal

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

func (*RequestRepairContracts) XXX_Merge

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

func (*RequestRepairContracts) XXX_MessageName

func (*RequestRepairContracts) XXX_MessageName() string

func (*RequestRepairContracts) XXX_Size

func (m *RequestRepairContracts) XXX_Size() int

func (*RequestRepairContracts) XXX_Unmarshal

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

type ResponseChallengeQuestion

type ResponseChallengeQuestion struct {
	Answer               *ChallengeQuestion `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty" pg:"answer"`
	HostPid              string             `protobuf:"bytes,2,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	ResolveTime          time.Time          `protobuf:"bytes,3,opt,name=resolve_time,json=resolveTime,proto3,stdtime" json:"resolve_time" pg:"resolve_time"`
	Signature            []byte             `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	IsRepair             bool               `protobuf:"varint,5,opt,name=is_repair,json=isRepair,proto3" json:"is_repair,omitempty" pg:"is_repair"`
	FileHash             string             `protobuf:"bytes,6,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-" pg:"-"`
	XXX_unrecognized     []byte             `json:"-" pg:"-"`
	XXX_sizecache        int32              `json:"-" pg:"-"`
}

func NewPopulatedResponseChallengeQuestion

func NewPopulatedResponseChallengeQuestion(r randyGuard, easy bool) *ResponseChallengeQuestion

func (*ResponseChallengeQuestion) Descriptor

func (*ResponseChallengeQuestion) Descriptor() ([]byte, []int)

func (*ResponseChallengeQuestion) GetAnswer

func (*ResponseChallengeQuestion) GetFileHash

func (m *ResponseChallengeQuestion) GetFileHash() string

func (*ResponseChallengeQuestion) GetHostPid

func (m *ResponseChallengeQuestion) GetHostPid() string

func (*ResponseChallengeQuestion) GetIsRepair

func (m *ResponseChallengeQuestion) GetIsRepair() bool

func (*ResponseChallengeQuestion) GetResolveTime

func (m *ResponseChallengeQuestion) GetResolveTime() time.Time

func (*ResponseChallengeQuestion) GetSignature

func (m *ResponseChallengeQuestion) GetSignature() []byte

func (*ResponseChallengeQuestion) Marshal

func (m *ResponseChallengeQuestion) Marshal() (dAtA []byte, err error)

func (*ResponseChallengeQuestion) MarshalTo

func (m *ResponseChallengeQuestion) MarshalTo(dAtA []byte) (int, error)

func (*ResponseChallengeQuestion) MarshalToSizedBuffer

func (m *ResponseChallengeQuestion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseChallengeQuestion) ProtoMessage

func (*ResponseChallengeQuestion) ProtoMessage()

func (*ResponseChallengeQuestion) Reset

func (m *ResponseChallengeQuestion) Reset()

func (*ResponseChallengeQuestion) Size

func (m *ResponseChallengeQuestion) Size() (n int)

func (*ResponseChallengeQuestion) String

func (m *ResponseChallengeQuestion) String() string

func (*ResponseChallengeQuestion) Unmarshal

func (m *ResponseChallengeQuestion) Unmarshal(dAtA []byte) error

func (*ResponseChallengeQuestion) XXX_DiscardUnknown

func (m *ResponseChallengeQuestion) XXX_DiscardUnknown()

func (*ResponseChallengeQuestion) XXX_Marshal

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

func (*ResponseChallengeQuestion) XXX_Merge

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

func (*ResponseChallengeQuestion) XXX_MessageName

func (*ResponseChallengeQuestion) XXX_MessageName() string

func (*ResponseChallengeQuestion) XXX_Size

func (m *ResponseChallengeQuestion) XXX_Size() int

func (*ResponseChallengeQuestion) XXX_Unmarshal

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

type ResponseCode

type ResponseCode int32
const (
	ResponseCode_SUCCESS                ResponseCode = 0
	ResponseCode_SIGNATURE_FORMAT_ERROR ResponseCode = 1
	ResponseCode_COMPUTE_ADDRESS_ERROR  ResponseCode = 2
	ResponseCode_OTHER_ERROR            ResponseCode = 20
)

func (ResponseCode) EnumDescriptor

func (ResponseCode) EnumDescriptor() ([]byte, []int)

func (ResponseCode) String

func (x ResponseCode) String() string

type ResponseRepairContracts

type ResponseRepairContracts struct {
	FileHash             string                             `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	RepairNode           string                             `protobuf:"bytes,2,opt,name=repair_node,json=repairNode,proto3" json:"repair_node,omitempty" pg:"repair_node"`
	State                ResponseRepairContracts_RepairStat `protobuf:"varint,3,opt,name=state,proto3,enum=guard.ResponseRepairContracts_RepairStat" json:"state,omitempty" pg:"state"`
	Status               *FileStoreStatus                   `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty" pg:"status"`
	GuardPid             string                             `protobuf:"bytes,5,opt,name=guard_pid,json=guardPid,proto3" json:"guard_pid,omitempty" pg:"guard_pid"`
	SignTime             time.Time                          `protobuf:"bytes,6,opt,name=sign_time,json=signTime,proto3,stdtime" json:"sign_time" pg:"sign_time"`
	GuardSignature       []byte                             `protobuf:"bytes,7,opt,name=guard_signature,json=guardSignature,proto3" json:"guard_signature,omitempty" pg:"guard_signature"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-" pg:"-"`
	XXX_unrecognized     []byte                             `json:"-" pg:"-"`
	XXX_sizecache        int32                              `json:"-" pg:"-"`
}

func NewPopulatedResponseRepairContracts

func NewPopulatedResponseRepairContracts(r randyGuard, easy bool) *ResponseRepairContracts

func (*ResponseRepairContracts) Descriptor

func (*ResponseRepairContracts) Descriptor() ([]byte, []int)

func (*ResponseRepairContracts) GetFileHash

func (m *ResponseRepairContracts) GetFileHash() string

func (*ResponseRepairContracts) GetGuardPid

func (m *ResponseRepairContracts) GetGuardPid() string

func (*ResponseRepairContracts) GetGuardSignature

func (m *ResponseRepairContracts) GetGuardSignature() []byte

func (*ResponseRepairContracts) GetRepairNode

func (m *ResponseRepairContracts) GetRepairNode() string

func (*ResponseRepairContracts) GetSignTime

func (m *ResponseRepairContracts) GetSignTime() time.Time

func (*ResponseRepairContracts) GetState

func (*ResponseRepairContracts) GetStatus

func (m *ResponseRepairContracts) GetStatus() *FileStoreStatus

func (*ResponseRepairContracts) Marshal

func (m *ResponseRepairContracts) Marshal() (dAtA []byte, err error)

func (*ResponseRepairContracts) MarshalTo

func (m *ResponseRepairContracts) MarshalTo(dAtA []byte) (int, error)

func (*ResponseRepairContracts) MarshalToSizedBuffer

func (m *ResponseRepairContracts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseRepairContracts) ProtoMessage

func (*ResponseRepairContracts) ProtoMessage()

func (*ResponseRepairContracts) Reset

func (m *ResponseRepairContracts) Reset()

func (*ResponseRepairContracts) Size

func (m *ResponseRepairContracts) Size() (n int)

func (*ResponseRepairContracts) String

func (m *ResponseRepairContracts) String() string

func (*ResponseRepairContracts) Unmarshal

func (m *ResponseRepairContracts) Unmarshal(dAtA []byte) error

func (*ResponseRepairContracts) XXX_DiscardUnknown

func (m *ResponseRepairContracts) XXX_DiscardUnknown()

func (*ResponseRepairContracts) XXX_Marshal

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

func (*ResponseRepairContracts) XXX_Merge

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

func (*ResponseRepairContracts) XXX_MessageName

func (*ResponseRepairContracts) XXX_MessageName() string

func (*ResponseRepairContracts) XXX_Size

func (m *ResponseRepairContracts) XXX_Size() int

func (*ResponseRepairContracts) XXX_Unmarshal

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

type ResponseRepairContracts_RepairStat

type ResponseRepairContracts_RepairStat int32
const (
	ResponseRepairContracts_CONTRACT_READY    ResponseRepairContracts_RepairStat = 0
	ResponseRepairContracts_DOWNLOAD_NOT_DONE ResponseRepairContracts_RepairStat = 1
	ResponseRepairContracts_REQUEST_AGAIN     ResponseRepairContracts_RepairStat = 2
	ResponseRepairContracts_CONTRACT_CLOSED   ResponseRepairContracts_RepairStat = 3
)

func (ResponseRepairContracts_RepairStat) EnumDescriptor

func (ResponseRepairContracts_RepairStat) EnumDescriptor() ([]byte, []int)

func (ResponseRepairContracts_RepairStat) String

type Result

type Result struct {
	Code                 ResponseCode `protobuf:"varint,1,opt,name=code,proto3,enum=guard.ResponseCode" json:"code,omitempty" pg:"code"`
	Message              string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty" pg:"message"`
	ResponseTime         time.Time    `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time" pg:"response_time"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-" pg:"-"`
	XXX_unrecognized     []byte       `json:"-" pg:"-"`
	XXX_sizecache        int32        `json:"-" pg:"-"`
}

func NewPopulatedResult

func NewPopulatedResult(r randyGuard, easy bool) *Result

func (*Result) Descriptor

func (*Result) Descriptor() ([]byte, []int)

func (*Result) GetCode

func (m *Result) GetCode() ResponseCode

func (*Result) GetMessage

func (m *Result) GetMessage() string

func (*Result) GetResponseTime

func (m *Result) GetResponseTime() time.Time

func (*Result) Marshal

func (m *Result) Marshal() (dAtA []byte, err error)

func (*Result) MarshalTo

func (m *Result) MarshalTo(dAtA []byte) (int, error)

func (*Result) MarshalToSizedBuffer

func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) Size

func (m *Result) Size() (n int)

func (*Result) String

func (m *Result) String() string

func (*Result) Unmarshal

func (m *Result) Unmarshal(dAtA []byte) error

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

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

func (*Result) XXX_Merge

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

func (*Result) XXX_MessageName

func (*Result) XXX_MessageName() string

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

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

type ShardChallengeQuestions

type ShardChallengeQuestions struct {
	FileHash             string               `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardHash            string               `protobuf:"bytes,2,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	PreparerPid          string               `protobuf:"bytes,3,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	QuestionCount        int32                `protobuf:"varint,4,opt,name=question_count,json=questionCount,proto3" json:"question_count,omitempty" pg:"question_count"`
	Questions            []*ChallengeQuestion `protobuf:"bytes,5,rep,name=questions,proto3" json:"questions,omitempty" pg:"questions"`
	PrepareTime          time.Time            `protobuf:"bytes,6,opt,name=prepare_time,json=prepareTime,proto3,stdtime" json:"prepare_time" pg:"prepare_time"`
	PreparerSignature    []byte               `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-" pg:"-"`
	XXX_unrecognized     []byte               `json:"-" pg:"-"`
	XXX_sizecache        int32                `json:"-" pg:"-"`
}

func NewPopulatedShardChallengeQuestions

func NewPopulatedShardChallengeQuestions(r randyGuard, easy bool) *ShardChallengeQuestions

func (*ShardChallengeQuestions) Descriptor

func (*ShardChallengeQuestions) Descriptor() ([]byte, []int)

func (*ShardChallengeQuestions) GetFileHash

func (m *ShardChallengeQuestions) GetFileHash() string

func (*ShardChallengeQuestions) GetPrepareTime

func (m *ShardChallengeQuestions) GetPrepareTime() time.Time

func (*ShardChallengeQuestions) GetPreparerPid

func (m *ShardChallengeQuestions) GetPreparerPid() string

func (*ShardChallengeQuestions) GetPreparerSignature

func (m *ShardChallengeQuestions) GetPreparerSignature() []byte

func (*ShardChallengeQuestions) GetQuestionCount

func (m *ShardChallengeQuestions) GetQuestionCount() int32

func (*ShardChallengeQuestions) GetQuestions

func (m *ShardChallengeQuestions) GetQuestions() []*ChallengeQuestion

func (*ShardChallengeQuestions) GetShardHash

func (m *ShardChallengeQuestions) GetShardHash() string

func (*ShardChallengeQuestions) Marshal

func (m *ShardChallengeQuestions) Marshal() (dAtA []byte, err error)

func (*ShardChallengeQuestions) MarshalTo

func (m *ShardChallengeQuestions) MarshalTo(dAtA []byte) (int, error)

func (*ShardChallengeQuestions) MarshalToSizedBuffer

func (m *ShardChallengeQuestions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ShardChallengeQuestions) ProtoMessage

func (*ShardChallengeQuestions) ProtoMessage()

func (*ShardChallengeQuestions) Reset

func (m *ShardChallengeQuestions) Reset()

func (*ShardChallengeQuestions) Size

func (m *ShardChallengeQuestions) Size() (n int)

func (*ShardChallengeQuestions) String

func (m *ShardChallengeQuestions) String() string

func (*ShardChallengeQuestions) Unmarshal

func (m *ShardChallengeQuestions) Unmarshal(dAtA []byte) error

func (*ShardChallengeQuestions) XXX_DiscardUnknown

func (m *ShardChallengeQuestions) XXX_DiscardUnknown()

func (*ShardChallengeQuestions) XXX_Marshal

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

func (*ShardChallengeQuestions) XXX_Merge

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

func (*ShardChallengeQuestions) XXX_MessageName

func (*ShardChallengeQuestions) XXX_MessageName() string

func (*ShardChallengeQuestions) XXX_Size

func (m *ShardChallengeQuestions) XXX_Size() int

func (*ShardChallengeQuestions) XXX_Unmarshal

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

type ShardChallengeResult

type ShardChallengeResult struct {
	HostPid              string   `protobuf:"bytes,1,opt,name=host_pid,json=hostPid,proto3" json:"host_pid,omitempty" pg:"host_pid"`
	FileHash             string   `protobuf:"bytes,2,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty" pg:"file_hash"`
	ShardHash            string   `protobuf:"bytes,3,opt,name=shard_hash,json=shardHash,proto3" json:"shard_hash,omitempty" pg:"shard_hash"`
	Nonce                string   `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty" pg:"nonce"`
	Result               string   `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty" pg:"result"`
	IsTimeout            bool     `protobuf:"varint,6,opt,name=is_timeout,json=isTimeout,proto3" json:"is_timeout,omitempty" pg:"is_timeout"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedShardChallengeResult

func NewPopulatedShardChallengeResult(r randyGuard, easy bool) *ShardChallengeResult

func (*ShardChallengeResult) Descriptor

func (*ShardChallengeResult) Descriptor() ([]byte, []int)

func (*ShardChallengeResult) GetFileHash

func (m *ShardChallengeResult) GetFileHash() string

func (*ShardChallengeResult) GetHostPid

func (m *ShardChallengeResult) GetHostPid() string

func (*ShardChallengeResult) GetIsTimeout

func (m *ShardChallengeResult) GetIsTimeout() bool

func (*ShardChallengeResult) GetNonce

func (m *ShardChallengeResult) GetNonce() string

func (*ShardChallengeResult) GetResult

func (m *ShardChallengeResult) GetResult() string

func (*ShardChallengeResult) GetShardHash

func (m *ShardChallengeResult) GetShardHash() string

func (*ShardChallengeResult) Marshal

func (m *ShardChallengeResult) Marshal() (dAtA []byte, err error)

func (*ShardChallengeResult) MarshalTo

func (m *ShardChallengeResult) MarshalTo(dAtA []byte) (int, error)

func (*ShardChallengeResult) MarshalToSizedBuffer

func (m *ShardChallengeResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ShardChallengeResult) ProtoMessage

func (*ShardChallengeResult) ProtoMessage()

func (*ShardChallengeResult) Reset

func (m *ShardChallengeResult) Reset()

func (*ShardChallengeResult) Size

func (m *ShardChallengeResult) Size() (n int)

func (*ShardChallengeResult) String

func (m *ShardChallengeResult) String() string

func (*ShardChallengeResult) Unmarshal

func (m *ShardChallengeResult) Unmarshal(dAtA []byte) error

func (*ShardChallengeResult) XXX_DiscardUnknown

func (m *ShardChallengeResult) XXX_DiscardUnknown()

func (*ShardChallengeResult) XXX_Marshal

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

func (*ShardChallengeResult) XXX_Merge

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

func (*ShardChallengeResult) XXX_MessageName

func (*ShardChallengeResult) XXX_MessageName() string

func (*ShardChallengeResult) XXX_Size

func (m *ShardChallengeResult) XXX_Size() int

func (*ShardChallengeResult) XXX_Unmarshal

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

type TotalStateSummary

type TotalStateSummary struct {
	QueryDate            time.Time `protobuf:"bytes,1,opt,name=query_date,json=queryDate,proto3,stdtime" json:"query_date" pg:"query_date"`
	ResponseTime         time.Time `protobuf:"bytes,2,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time" pg:"response_time"`
	PreparerPid          string    `protobuf:"bytes,3,opt,name=preparer_pid,json=preparerPid,proto3" json:"preparer_pid,omitempty" pg:"preparer_pid"`
	Signature            []byte    `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	ValidContractCount   int64     `` /* 144-byte string literal not displayed */
	ExistedShardSize     int64     `` /* 136-byte string literal not displayed */
	InvalidContractCount int64     `` /* 152-byte string literal not displayed */
	LostShardSize        int64     `protobuf:"varint,8,opt,name=lost_shard_size,json=lostShardSize,proto3" json:"lost_shard_size,omitempty" pg:"lost_shard_size"`
	TotalHostReward      int64     `` /* 132-byte string literal not displayed */
	TotalWbttReward      int64     `` /* 133-byte string literal not displayed */
	TotalTrxReward       int64     `` /* 129-byte string literal not displayed */
	TotalUsddReward      int64     `` /* 133-byte string literal not displayed */
	TotalUsdtReward      int64     `` /* 133-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func NewPopulatedTotalStateSummary

func NewPopulatedTotalStateSummary(r randyGuard, easy bool) *TotalStateSummary

func (*TotalStateSummary) Descriptor

func (*TotalStateSummary) Descriptor() ([]byte, []int)

func (*TotalStateSummary) GetExistedShardSize

func (m *TotalStateSummary) GetExistedShardSize() int64

func (*TotalStateSummary) GetInvalidContractCount

func (m *TotalStateSummary) GetInvalidContractCount() int64

func (*TotalStateSummary) GetLostShardSize

func (m *TotalStateSummary) GetLostShardSize() int64

func (*TotalStateSummary) GetPreparerPid

func (m *TotalStateSummary) GetPreparerPid() string

func (*TotalStateSummary) GetQueryDate

func (m *TotalStateSummary) GetQueryDate() time.Time

func (*TotalStateSummary) GetResponseTime

func (m *TotalStateSummary) GetResponseTime() time.Time

func (*TotalStateSummary) GetSignature

func (m *TotalStateSummary) GetSignature() []byte

func (*TotalStateSummary) GetTotalHostReward

func (m *TotalStateSummary) GetTotalHostReward() int64

func (*TotalStateSummary) GetTotalTrxReward

func (m *TotalStateSummary) GetTotalTrxReward() int64

func (*TotalStateSummary) GetTotalUsddReward

func (m *TotalStateSummary) GetTotalUsddReward() int64

func (*TotalStateSummary) GetTotalUsdtReward

func (m *TotalStateSummary) GetTotalUsdtReward() int64

func (*TotalStateSummary) GetTotalWbttReward

func (m *TotalStateSummary) GetTotalWbttReward() int64

func (*TotalStateSummary) GetValidContractCount

func (m *TotalStateSummary) GetValidContractCount() int64

func (*TotalStateSummary) Marshal

func (m *TotalStateSummary) Marshal() (dAtA []byte, err error)

func (*TotalStateSummary) MarshalTo

func (m *TotalStateSummary) MarshalTo(dAtA []byte) (int, error)

func (*TotalStateSummary) MarshalToSizedBuffer

func (m *TotalStateSummary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TotalStateSummary) ProtoMessage

func (*TotalStateSummary) ProtoMessage()

func (*TotalStateSummary) Reset

func (m *TotalStateSummary) Reset()

func (*TotalStateSummary) Size

func (m *TotalStateSummary) Size() (n int)

func (*TotalStateSummary) String

func (m *TotalStateSummary) String() string

func (*TotalStateSummary) Unmarshal

func (m *TotalStateSummary) Unmarshal(dAtA []byte) error

func (*TotalStateSummary) XXX_DiscardUnknown

func (m *TotalStateSummary) XXX_DiscardUnknown()

func (*TotalStateSummary) XXX_Marshal

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

func (*TotalStateSummary) XXX_Merge

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

func (*TotalStateSummary) XXX_MessageName

func (*TotalStateSummary) XXX_MessageName() string

func (*TotalStateSummary) XXX_Size

func (m *TotalStateSummary) XXX_Size() int

func (*TotalStateSummary) XXX_Unmarshal

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

type UnimplementedGuardServiceServer

type UnimplementedGuardServiceServer struct {
}

UnimplementedGuardServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGuardServiceServer) AdminGetDailyHostsRankNew

func (*UnimplementedGuardServiceServer) AdminGetDailyHostsRankNew(ctx context.Context, req *AdminQuery) (*HostSummary, error)

func (*UnimplementedGuardServiceServer) AdminGetDailyHostsRankTotal

func (*UnimplementedGuardServiceServer) AdminGetDailyHostsRankTotal(ctx context.Context, req *AdminQuery) (*HostSummary, error)

func (*UnimplementedGuardServiceServer) AdminGetDailySummary

func (*UnimplementedGuardServiceServer) AdminGetDailySummary(ctx context.Context, req *AdminQuery) (*DailySummary, error)

func (*UnimplementedGuardServiceServer) AdminGetDailyTotalState

func (*UnimplementedGuardServiceServer) AdminGetDailyTotalState(ctx context.Context, req *AdminQuery) (*TotalStateSummary, error)

func (*UnimplementedGuardServiceServer) CheckFileStoreMeta

func (*UnimplementedGuardServiceServer) ForceRepair

func (*UnimplementedGuardServiceServer) ListHostContracts

func (*UnimplementedGuardServiceServer) ReadyForChallenge

func (*UnimplementedGuardServiceServer) ReportFailToDownload

func (*UnimplementedGuardServiceServer) RequestChallenge

func (*UnimplementedGuardServiceServer) RequestForChallengeJob

func (*UnimplementedGuardServiceServer) RequestForRepairContracts

func (*UnimplementedGuardServiceServer) ResponseChallenge

func (*UnimplementedGuardServiceServer) RetrieveFileInfo

func (*UnimplementedGuardServiceServer) SendQuestions

func (*UnimplementedGuardServiceServer) SubmitChallengeJobResult

func (*UnimplementedGuardServiceServer) SubmitChallengeJobResult(ctx context.Context, req *ChallengeJobResult) (*Result, error)

func (*UnimplementedGuardServiceServer) SubmitFileStoreMeta

func (*UnimplementedGuardServiceServer) SubmitFileStoreMeta(ctx context.Context, req *FileStoreStatus) (*Result, error)

func (*UnimplementedGuardServiceServer) SubmitRepairContract

Jump to

Keyboard shortcuts

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