guard

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 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 added in v0.7.8

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 added in v0.7.8

func NewPopulatedAdminQuery(r randyGuard, easy bool) *AdminQuery

func (*AdminQuery) Descriptor added in v0.7.8

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

func (*AdminQuery) GetQueryCount added in v0.7.8

func (m *AdminQuery) GetQueryCount() int32

func (*AdminQuery) GetQueryDate added in v0.7.8

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

func (*AdminQuery) GetRequestTime added in v0.7.8

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

func (*AdminQuery) GetRequesterPid added in v0.7.8

func (m *AdminQuery) GetRequesterPid() string

func (*AdminQuery) GetSignature added in v0.7.8

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

func (*AdminQuery) Marshal added in v0.7.8

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

func (*AdminQuery) MarshalTo added in v0.7.8

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

func (*AdminQuery) MarshalToSizedBuffer added in v0.7.8

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

func (*AdminQuery) ProtoMessage added in v0.7.8

func (*AdminQuery) ProtoMessage()

func (*AdminQuery) Reset added in v0.7.8

func (m *AdminQuery) Reset()

func (*AdminQuery) Size added in v0.7.8

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

func (*AdminQuery) String added in v0.7.8

func (m *AdminQuery) String() string

func (*AdminQuery) Unmarshal added in v0.7.8

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

func (*AdminQuery) XXX_DiscardUnknown added in v0.7.8

func (m *AdminQuery) XXX_DiscardUnknown()

func (*AdminQuery) XXX_Marshal added in v0.7.8

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

func (*AdminQuery) XXX_Merge added in v0.7.8

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

func (*AdminQuery) XXX_MessageName added in v0.7.8

func (*AdminQuery) XXX_MessageName() string

func (*AdminQuery) XXX_Size added in v0.7.8

func (m *AdminQuery) XXX_Size() int

func (*AdminQuery) XXX_Unmarshal added in v0.7.8

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

type CancelContractRequest added in v0.7.0

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 added in v0.7.0

func NewPopulatedCancelContractRequest(r randyGuard, easy bool) *CancelContractRequest

func (*CancelContractRequest) Descriptor added in v0.7.0

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

func (*CancelContractRequest) GetContractId added in v0.7.0

func (m *CancelContractRequest) GetContractId() string

func (*CancelContractRequest) GetFileHash added in v0.7.0

func (m *CancelContractRequest) GetFileHash() string

func (*CancelContractRequest) GetHostPid added in v0.7.0

func (m *CancelContractRequest) GetHostPid() string

func (*CancelContractRequest) GetReason added in v0.7.0

func (*CancelContractRequest) GetRenterPid added in v0.7.0

func (m *CancelContractRequest) GetRenterPid() string

func (*CancelContractRequest) GetShardHash added in v0.7.0

func (m *CancelContractRequest) GetShardHash() string

func (*CancelContractRequest) GetSignTime added in v0.7.0

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

func (*CancelContractRequest) GetSignature added in v0.7.0

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

func (*CancelContractRequest) Marshal added in v0.7.0

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

func (*CancelContractRequest) MarshalTo added in v0.7.0

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

func (*CancelContractRequest) MarshalToSizedBuffer added in v0.7.0

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

func (*CancelContractRequest) ProtoMessage added in v0.7.0

func (*CancelContractRequest) ProtoMessage()

func (*CancelContractRequest) Reset added in v0.7.0

func (m *CancelContractRequest) Reset()

func (*CancelContractRequest) Size added in v0.7.0

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

func (*CancelContractRequest) String added in v0.7.0

func (m *CancelContractRequest) String() string

func (*CancelContractRequest) Unmarshal added in v0.7.0

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

func (*CancelContractRequest) XXX_DiscardUnknown added in v0.7.0

func (m *CancelContractRequest) XXX_DiscardUnknown()

func (*CancelContractRequest) XXX_Marshal added in v0.7.0

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

func (*CancelContractRequest) XXX_Merge added in v0.7.0

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

func (*CancelContractRequest) XXX_MessageName added in v0.7.0

func (*CancelContractRequest) XXX_MessageName() string

func (*CancelContractRequest) XXX_Size added in v0.7.0

func (m *CancelContractRequest) XXX_Size() int

func (*CancelContractRequest) XXX_Unmarshal added in v0.7.0

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

type CancelContractRequest_CancelReason added in v0.7.0

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 added in v0.7.0

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

func (CancelContractRequest_CancelReason) String added in v0.7.0

type ChallengeJobRequest added in v0.7.7

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 added in v0.7.7

func NewPopulatedChallengeJobRequest(r randyGuard, easy bool) *ChallengeJobRequest

func (*ChallengeJobRequest) Descriptor added in v0.7.7

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

func (*ChallengeJobRequest) GetNodePid added in v0.7.7

func (m *ChallengeJobRequest) GetNodePid() string

func (*ChallengeJobRequest) GetRequestTime added in v0.7.7

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

func (*ChallengeJobRequest) GetSignature added in v0.7.7

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

func (*ChallengeJobRequest) Marshal added in v0.7.7

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

func (*ChallengeJobRequest) MarshalTo added in v0.7.7

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

func (*ChallengeJobRequest) MarshalToSizedBuffer added in v0.7.7

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

func (*ChallengeJobRequest) ProtoMessage added in v0.7.7

func (*ChallengeJobRequest) ProtoMessage()

func (*ChallengeJobRequest) Reset added in v0.7.7

func (m *ChallengeJobRequest) Reset()

func (*ChallengeJobRequest) Size added in v0.7.7

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

func (*ChallengeJobRequest) String added in v0.7.7

func (m *ChallengeJobRequest) String() string

func (*ChallengeJobRequest) Unmarshal added in v0.7.7

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

func (*ChallengeJobRequest) XXX_DiscardUnknown added in v0.7.7

func (m *ChallengeJobRequest) XXX_DiscardUnknown()

func (*ChallengeJobRequest) XXX_Marshal added in v0.7.7

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

func (*ChallengeJobRequest) XXX_Merge added in v0.7.7

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

func (*ChallengeJobRequest) XXX_MessageName added in v0.7.7

func (*ChallengeJobRequest) XXX_MessageName() string

func (*ChallengeJobRequest) XXX_Size added in v0.7.7

func (m *ChallengeJobRequest) XXX_Size() int

func (*ChallengeJobRequest) XXX_Unmarshal added in v0.7.7

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

type ChallengeJobResponse added in v0.7.7

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 added in v0.7.7

func NewPopulatedChallengeJobResponse(r randyGuard, easy bool) *ChallengeJobResponse

func (*ChallengeJobResponse) Descriptor added in v0.7.7

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

func (*ChallengeJobResponse) GetIssuerPid added in v0.7.7

func (m *ChallengeJobResponse) GetIssuerPid() string

func (*ChallengeJobResponse) GetJobFinishDeadline added in v0.7.7

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

func (*ChallengeJobResponse) GetJobId added in v0.7.7

func (m *ChallengeJobResponse) GetJobId() string

func (*ChallengeJobResponse) GetNodePid added in v0.7.7

func (m *ChallengeJobResponse) GetNodePid() string

func (*ChallengeJobResponse) GetPackageQuestionsCount added in v0.7.7

func (m *ChallengeJobResponse) GetPackageQuestionsCount() int32

func (*ChallengeJobResponse) GetPackageUrl added in v0.7.7

func (m *ChallengeJobResponse) GetPackageUrl() string

func (*ChallengeJobResponse) GetSendTime added in v0.7.7

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

func (*ChallengeJobResponse) GetSignature added in v0.7.7

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

func (*ChallengeJobResponse) Marshal added in v0.7.7

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

func (*ChallengeJobResponse) MarshalTo added in v0.7.7

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

func (*ChallengeJobResponse) MarshalToSizedBuffer added in v0.7.7

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

func (*ChallengeJobResponse) ProtoMessage added in v0.7.7

func (*ChallengeJobResponse) ProtoMessage()

func (*ChallengeJobResponse) Reset added in v0.7.7

func (m *ChallengeJobResponse) Reset()

func (*ChallengeJobResponse) Size added in v0.7.7

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

func (*ChallengeJobResponse) String added in v0.7.7

func (m *ChallengeJobResponse) String() string

func (*ChallengeJobResponse) Unmarshal added in v0.7.7

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

func (*ChallengeJobResponse) XXX_DiscardUnknown added in v0.7.7

func (m *ChallengeJobResponse) XXX_DiscardUnknown()

func (*ChallengeJobResponse) XXX_Marshal added in v0.7.7

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

func (*ChallengeJobResponse) XXX_Merge added in v0.7.7

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

func (*ChallengeJobResponse) XXX_MessageName added in v0.7.7

func (*ChallengeJobResponse) XXX_MessageName() string

func (*ChallengeJobResponse) XXX_Size added in v0.7.7

func (m *ChallengeJobResponse) XXX_Size() int

func (*ChallengeJobResponse) XXX_Unmarshal added in v0.7.7

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

type ChallengeJobResult added in v0.7.7

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 added in v0.7.7

func NewPopulatedChallengeJobResult(r randyGuard, easy bool) *ChallengeJobResult

func (*ChallengeJobResult) Descriptor added in v0.7.7

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

func (*ChallengeJobResult) GetJobId added in v0.7.7

func (m *ChallengeJobResult) GetJobId() string

func (*ChallengeJobResult) GetNodePid added in v0.7.7

func (m *ChallengeJobResult) GetNodePid() string

func (*ChallengeJobResult) GetResult added in v0.7.7

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

func (*ChallengeJobResult) GetSignature added in v0.7.7

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

func (*ChallengeJobResult) GetSubmitTime added in v0.7.7

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

func (*ChallengeJobResult) Marshal added in v0.7.7

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

func (*ChallengeJobResult) MarshalTo added in v0.7.7

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

func (*ChallengeJobResult) MarshalToSizedBuffer added in v0.7.7

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

func (*ChallengeJobResult) ProtoMessage added in v0.7.7

func (*ChallengeJobResult) ProtoMessage()

func (*ChallengeJobResult) Reset added in v0.7.7

func (m *ChallengeJobResult) Reset()

func (*ChallengeJobResult) Size added in v0.7.7

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

func (*ChallengeJobResult) String added in v0.7.7

func (m *ChallengeJobResult) String() string

func (*ChallengeJobResult) Unmarshal added in v0.7.7

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

func (*ChallengeJobResult) XXX_DiscardUnknown added in v0.7.7

func (m *ChallengeJobResult) XXX_DiscardUnknown()

func (*ChallengeJobResult) XXX_Marshal added in v0.7.7

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

func (*ChallengeJobResult) XXX_Merge added in v0.7.7

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

func (*ChallengeJobResult) XXX_MessageName added in v0.7.7

func (*ChallengeJobResult) XXX_MessageName() string

func (*ChallengeJobResult) XXX_Size added in v0.7.7

func (m *ChallengeJobResult) XXX_Size() int

func (*ChallengeJobResult) XXX_Unmarshal added in v0.7.7

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 added in v0.3.1

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 added in v0.1.2

func (m *ChallengeQuestion) GetHostPid() string

func (*ChallengeQuestion) GetNonce added in v0.1.2

func (m *ChallengeQuestion) GetNonce() string

func (*ChallengeQuestion) GetShardHash

func (m *ChallengeQuestion) GetShardHash() string

func (*ChallengeQuestion) Marshal added in v0.0.13

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

func (*ChallengeQuestion) MarshalTo added in v0.0.13

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

func (*ChallengeQuestion) MarshalToSizedBuffer added in v0.0.13

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

func (*ChallengeQuestion) ProtoMessage

func (*ChallengeQuestion) ProtoMessage()

func (*ChallengeQuestion) Reset

func (m *ChallengeQuestion) Reset()

func (*ChallengeQuestion) Size added in v0.0.13

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

func (*ChallengeQuestion) String

func (m *ChallengeQuestion) String() string

func (*ChallengeQuestion) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.3.1

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 added in v0.1.2

func (m *CheckFileStoreMetaRequest) GetRenterPid() string

func (*CheckFileStoreMetaRequest) GetRequestTime added in v0.0.9

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

func (*CheckFileStoreMetaRequest) GetRequesterPid added in v0.1.2

func (m *CheckFileStoreMetaRequest) GetRequesterPid() string

func (*CheckFileStoreMetaRequest) GetSignature

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

func (*CheckFileStoreMetaRequest) Marshal added in v0.0.13

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

func (*CheckFileStoreMetaRequest) MarshalTo added in v0.0.13

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

func (*CheckFileStoreMetaRequest) MarshalToSizedBuffer added in v0.0.13

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

func (*CheckFileStoreMetaRequest) ProtoMessage

func (*CheckFileStoreMetaRequest) ProtoMessage()

func (*CheckFileStoreMetaRequest) Reset

func (m *CheckFileStoreMetaRequest) Reset()

func (*CheckFileStoreMetaRequest) Size added in v0.0.13

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

func (*CheckFileStoreMetaRequest) String

func (m *CheckFileStoreMetaRequest) String() string

func (*CheckFileStoreMetaRequest) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.3.1

func NewPopulatedContract(r randyGuard, easy bool) *Contract

func (*Contract) Descriptor

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

func (*Contract) GetChallengeSuccessTimes added in v0.2.13

func (m *Contract) GetChallengeSuccessTimes() int32

func (*Contract) GetChallengeTimes added in v0.2.14

func (m *Contract) GetChallengeTimes() int32

func (*Contract) GetChallengeWarnTimes added in v0.2.13

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 added in v0.5.7

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 added in v0.2.13

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

func (*Contract) GetLastModifyTime

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

func (*Contract) GetLastSuccessChallengeTime added in v0.2.13

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

func (*Contract) GetPreparerPid added in v0.1.4

func (m *Contract) GetPreparerPid() string

func (*Contract) GetPreparerSignature added in v0.1.4

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 added in v0.8.13

func (m *Contract) GetToken() string

func (*Contract) Marshal added in v0.0.13

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

func (*Contract) MarshalTo added in v0.0.13

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

func (*Contract) MarshalToSizedBuffer added in v0.0.13

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

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) Size added in v0.0.13

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

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.3.1

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 added in v0.0.11

func (m *ContractMeta) GetCollateralAmount() int64

func (*ContractMeta) GetContingentAmount added in v0.5.7

func (m *ContractMeta) GetContingentAmount() int64

func (*ContractMeta) GetContractId

func (m *ContractMeta) GetContractId() string

func (*ContractMeta) GetEscrowPid added in v0.1.2

func (m *ContractMeta) GetEscrowPid() string

func (*ContractMeta) GetFileHash

func (m *ContractMeta) GetFileHash() string

func (*ContractMeta) GetGuardPid added in v0.1.2

func (m *ContractMeta) GetGuardPid() string

func (*ContractMeta) GetHostPid added in v0.1.2

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 added in v0.1.2

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 added in v0.0.13

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

func (*ContractMeta) MarshalTo added in v0.0.13

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

func (*ContractMeta) MarshalToSizedBuffer added in v0.0.13

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

func (*ContractMeta) ProtoMessage

func (*ContractMeta) ProtoMessage()

func (*ContractMeta) Reset

func (m *ContractMeta) Reset()

func (*ContractMeta) Size added in v0.0.13

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

func (*ContractMeta) String

func (m *ContractMeta) String() string

func (*ContractMeta) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.3.3

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 added in v0.3.3

func NewPopulatedContractsList(r randyGuard, easy bool) *ContractsList

func (*ContractsList) Descriptor added in v0.3.3

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

func (*ContractsList) GetContracts added in v0.3.3

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

func (*ContractsList) GetCount added in v0.3.3

func (m *ContractsList) GetCount() int32

func (*ContractsList) GetGenerateTime added in v0.3.3

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

func (*ContractsList) GetRequest added in v0.3.3

func (m *ContractsList) GetRequest() *ListHostContractsRequest

func (*ContractsList) GetSignature added in v0.3.3

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

func (*ContractsList) Marshal added in v0.3.3

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

func (*ContractsList) MarshalTo added in v0.3.3

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

func (*ContractsList) MarshalToSizedBuffer added in v0.3.3

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

func (*ContractsList) ProtoMessage added in v0.3.3

func (*ContractsList) ProtoMessage()

func (*ContractsList) Reset added in v0.3.3

func (m *ContractsList) Reset()

func (*ContractsList) Size added in v0.3.3

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

func (*ContractsList) String added in v0.3.3

func (m *ContractsList) String() string

func (*ContractsList) Unmarshal added in v0.3.3

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

func (*ContractsList) XXX_DiscardUnknown added in v0.3.3

func (m *ContractsList) XXX_DiscardUnknown()

func (*ContractsList) XXX_Marshal added in v0.3.3

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

func (*ContractsList) XXX_Merge added in v0.3.3

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

func (*ContractsList) XXX_MessageName added in v0.3.3

func (*ContractsList) XXX_MessageName() string

func (*ContractsList) XXX_Size added in v0.3.3

func (m *ContractsList) XXX_Size() int

func (*ContractsList) XXX_Unmarshal added in v0.3.3

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

type DailySummary added in v0.7.8

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 added in v0.7.8

func NewPopulatedDailySummary(r randyGuard, easy bool) *DailySummary

func (*DailySummary) Descriptor added in v0.7.8

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

func (*DailySummary) GetNewContracts added in v0.7.8

func (m *DailySummary) GetNewContracts() int64

func (*DailySummary) GetNewContractsAveragePrice added in v0.7.8

func (m *DailySummary) GetNewContractsAveragePrice() int64

func (*DailySummary) GetNewContractsHost added in v0.7.8

func (m *DailySummary) GetNewContractsHost() int64

func (*DailySummary) GetNewContractsRenter added in v0.7.8

func (m *DailySummary) GetNewContractsRenter() int64

func (*DailySummary) GetNewFiles added in v0.7.18

func (m *DailySummary) GetNewFiles() int64

func (*DailySummary) GetNewShardsSize added in v0.7.18

func (m *DailySummary) GetNewShardsSize() int64

func (*DailySummary) GetPreparerPid added in v0.7.8

func (m *DailySummary) GetPreparerPid() string

func (*DailySummary) GetQueryDate added in v0.7.8

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

func (*DailySummary) GetResponseTime added in v0.7.8

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

func (*DailySummary) GetSignature added in v0.7.8

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

func (*DailySummary) GetWorkingStorageSize added in v0.7.8

func (m *DailySummary) GetWorkingStorageSize() int64

func (*DailySummary) Marshal added in v0.7.8

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

func (*DailySummary) MarshalTo added in v0.7.8

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

func (*DailySummary) MarshalToSizedBuffer added in v0.7.8

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

func (*DailySummary) ProtoMessage added in v0.7.8

func (*DailySummary) ProtoMessage()

func (*DailySummary) Reset added in v0.7.8

func (m *DailySummary) Reset()

func (*DailySummary) Size added in v0.7.8

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

func (*DailySummary) String added in v0.7.8

func (m *DailySummary) String() string

func (*DailySummary) Unmarshal added in v0.7.8

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

func (*DailySummary) XXX_DiscardUnknown added in v0.7.8

func (m *DailySummary) XXX_DiscardUnknown()

func (*DailySummary) XXX_Marshal added in v0.7.8

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

func (*DailySummary) XXX_Merge added in v0.7.8

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

func (*DailySummary) XXX_MessageName added in v0.7.8

func (*DailySummary) XXX_MessageName() string

func (*DailySummary) XXX_Size added in v0.7.8

func (m *DailySummary) XXX_Size() int

func (*DailySummary) XXX_Unmarshal added in v0.7.8

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

type DeCentralQuestions added in v0.7.18

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 added in v0.7.18

func NewPopulatedDeCentralQuestions(r randyGuard, easy bool) *DeCentralQuestions

func (*DeCentralQuestions) Descriptor added in v0.7.18

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

func (*DeCentralQuestions) GetCount added in v0.7.18

func (m *DeCentralQuestions) GetCount() int32

func (*DeCentralQuestions) GetEndTime added in v0.7.18

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

func (*DeCentralQuestions) GetQs added in v0.7.18

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

func (*DeCentralQuestions) GetUrl added in v0.7.18

func (m *DeCentralQuestions) GetUrl() string

func (*DeCentralQuestions) GetUuid added in v0.7.18

func (m *DeCentralQuestions) GetUuid() string

func (*DeCentralQuestions) Marshal added in v0.7.18

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

func (*DeCentralQuestions) MarshalTo added in v0.7.18

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

func (*DeCentralQuestions) MarshalToSizedBuffer added in v0.7.18

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

func (*DeCentralQuestions) ProtoMessage added in v0.7.18

func (*DeCentralQuestions) ProtoMessage()

func (*DeCentralQuestions) Reset added in v0.7.18

func (m *DeCentralQuestions) Reset()

func (*DeCentralQuestions) Size added in v0.7.18

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

func (*DeCentralQuestions) String added in v0.7.18

func (m *DeCentralQuestions) String() string

func (*DeCentralQuestions) Unmarshal added in v0.7.18

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

func (*DeCentralQuestions) XXX_DiscardUnknown added in v0.7.18

func (m *DeCentralQuestions) XXX_DiscardUnknown()

func (*DeCentralQuestions) XXX_Marshal added in v0.7.18

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

func (*DeCentralQuestions) XXX_Merge added in v0.7.18

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

func (*DeCentralQuestions) XXX_MessageName added in v0.7.18

func (*DeCentralQuestions) XXX_MessageName() string

func (*DeCentralQuestions) XXX_Size added in v0.7.18

func (m *DeCentralQuestions) XXX_Size() int

func (*DeCentralQuestions) XXX_Unmarshal added in v0.7.18

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

type DeQuestion added in v0.7.18

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 added in v0.7.18

func NewPopulatedDeQuestion(r randyGuard, easy bool) *DeQuestion

func (*DeQuestion) Descriptor added in v0.7.18

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

func (*DeQuestion) GetChunkIndex added in v0.7.18

func (m *DeQuestion) GetChunkIndex() int32

func (*DeQuestion) GetFileHash added in v0.7.18

func (m *DeQuestion) GetFileHash() string

func (*DeQuestion) GetHostPid added in v0.7.18

func (m *DeQuestion) GetHostPid() string

func (*DeQuestion) GetNonce added in v0.7.18

func (m *DeQuestion) GetNonce() string

func (*DeQuestion) GetShardHash added in v0.7.18

func (m *DeQuestion) GetShardHash() string

func (*DeQuestion) Marshal added in v0.7.18

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

func (*DeQuestion) MarshalTo added in v0.7.18

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

func (*DeQuestion) MarshalToSizedBuffer added in v0.7.18

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

func (*DeQuestion) ProtoMessage added in v0.7.18

func (*DeQuestion) ProtoMessage()

func (*DeQuestion) Reset added in v0.7.18

func (m *DeQuestion) Reset()

func (*DeQuestion) Size added in v0.7.18

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

func (*DeQuestion) String added in v0.7.18

func (m *DeQuestion) String() string

func (*DeQuestion) Unmarshal added in v0.7.18

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

func (*DeQuestion) XXX_DiscardUnknown added in v0.7.18

func (m *DeQuestion) XXX_DiscardUnknown()

func (*DeQuestion) XXX_Marshal added in v0.7.18

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

func (*DeQuestion) XXX_Merge added in v0.7.18

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

func (*DeQuestion) XXX_MessageName added in v0.7.18

func (*DeQuestion) XXX_MessageName() string

func (*DeQuestion) XXX_Size added in v0.7.18

func (m *DeQuestion) XXX_Size() int

func (*DeQuestion) XXX_Unmarshal added in v0.7.18

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 added in v0.3.1

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 added in v0.0.13

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

func (*FileChallengeQuestions) MarshalTo added in v0.0.13

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

func (*FileChallengeQuestions) MarshalToSizedBuffer added in v0.0.13

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

func (*FileChallengeQuestions) ProtoMessage

func (*FileChallengeQuestions) ProtoMessage()

func (*FileChallengeQuestions) Reset

func (m *FileChallengeQuestions) Reset()

func (*FileChallengeQuestions) Size added in v0.0.13

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

func (*FileChallengeQuestions) String

func (m *FileChallengeQuestions) String() string

func (*FileChallengeQuestions) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.4.8

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 added in v0.4.8

func NewPopulatedFileStoreListResponse(r randyGuard, easy bool) *FileStoreListResponse

func (*FileStoreListResponse) Descriptor added in v0.4.8

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

func (*FileStoreListResponse) GetCount added in v0.4.8

func (m *FileStoreListResponse) GetCount() int32

func (*FileStoreListResponse) GetCurrentTime added in v0.4.8

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

func (*FileStoreListResponse) GetFileStoreMeta added in v0.4.8

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

func (*FileStoreListResponse) GetRequest added in v0.4.8

func (*FileStoreListResponse) GetSignature added in v0.4.8

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

func (*FileStoreListResponse) Marshal added in v0.4.8

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

func (*FileStoreListResponse) MarshalTo added in v0.4.8

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

func (*FileStoreListResponse) MarshalToSizedBuffer added in v0.4.8

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

func (*FileStoreListResponse) ProtoMessage added in v0.4.8

func (*FileStoreListResponse) ProtoMessage()

func (*FileStoreListResponse) Reset added in v0.4.8

func (m *FileStoreListResponse) Reset()

func (*FileStoreListResponse) Size added in v0.4.8

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

func (*FileStoreListResponse) String added in v0.4.8

func (m *FileStoreListResponse) String() string

func (*FileStoreListResponse) Unmarshal added in v0.4.8

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

func (*FileStoreListResponse) XXX_DiscardUnknown added in v0.4.8

func (m *FileStoreListResponse) XXX_DiscardUnknown()

func (*FileStoreListResponse) XXX_Marshal added in v0.4.8

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

func (*FileStoreListResponse) XXX_Merge added in v0.4.8

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

func (*FileStoreListResponse) XXX_MessageName added in v0.4.8

func (*FileStoreListResponse) XXX_MessageName() string

func (*FileStoreListResponse) XXX_Size added in v0.4.8

func (m *FileStoreListResponse) XXX_Size() int

func (*FileStoreListResponse) XXX_Unmarshal added in v0.4.8

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 added in v0.3.1

func NewPopulatedFileStoreMeta(r randyGuard, easy bool) *FileStoreMeta

func (*FileStoreMeta) Descriptor

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

func (*FileStoreMeta) GetCheckFrequency added in v0.0.11

func (m *FileStoreMeta) GetCheckFrequency() int32

func (*FileStoreMeta) GetCheckFrequencyWarn added in v0.2.13

func (m *FileStoreMeta) GetCheckFrequencyWarn() int32

func (*FileStoreMeta) GetEscrowFee

func (m *FileStoreMeta) GetEscrowFee() int64

func (*FileStoreMeta) GetEscrowPid added in v0.1.2

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 added in v0.1.2

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 added in v0.1.2

func (m *FileStoreMeta) GetRenterPid() string

func (*FileStoreMeta) GetShardCount

func (m *FileStoreMeta) GetShardCount() int32

func (*FileStoreMeta) GetSuccessChallengeTimesLimit added in v0.2.14

func (m *FileStoreMeta) GetSuccessChallengeTimesLimit() int32

func (*FileStoreMeta) GetToken added in v0.8.13

func (m *FileStoreMeta) GetToken() string

func (*FileStoreMeta) GetWarnChallengeTimesLimit added in v0.2.14

func (m *FileStoreMeta) GetWarnChallengeTimesLimit() int32

func (*FileStoreMeta) Marshal added in v0.0.13

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

func (*FileStoreMeta) MarshalTo added in v0.0.13

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

func (*FileStoreMeta) MarshalToSizedBuffer added in v0.0.13

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

func (*FileStoreMeta) ProtoMessage

func (*FileStoreMeta) ProtoMessage()

func (*FileStoreMeta) Reset

func (m *FileStoreMeta) Reset()

func (*FileStoreMeta) Size added in v0.0.13

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

func (*FileStoreMeta) String

func (m *FileStoreMeta) String() string

func (*FileStoreMeta) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.3.1

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 added in v0.1.2

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 added in v0.1.4

func (m *FileStoreStatus) GetPreparerPid() string

func (*FileStoreStatus) GetPreparerSignature added in v0.1.4

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

func (*FileStoreStatus) GetRentalState added in v0.1.4

func (m *FileStoreStatus) GetRentalState() FileStoreStatus_RentalState

func (*FileStoreStatus) GetRenterSignature

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

func (*FileStoreStatus) GetState

func (*FileStoreStatus) Marshal added in v0.0.13

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

func (*FileStoreStatus) MarshalTo added in v0.0.13

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

func (*FileStoreStatus) MarshalToSizedBuffer added in v0.0.13

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

func (*FileStoreStatus) ProtoMessage

func (*FileStoreStatus) ProtoMessage()

func (*FileStoreStatus) Reset

func (m *FileStoreStatus) Reset()

func (*FileStoreStatus) Size added in v0.0.13

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

func (*FileStoreStatus) String

func (m *FileStoreStatus) String() string

func (*FileStoreStatus) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.1.4

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 added in v0.1.4

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

func (FileStoreStatus_RentalState) String added in v0.1.4

type ForceRepairRequest added in v0.2.26

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 added in v0.3.1

func NewPopulatedForceRepairRequest(r randyGuard, easy bool) *ForceRepairRequest

func (*ForceRepairRequest) Descriptor added in v0.2.26

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

func (*ForceRepairRequest) GetAuthPid added in v0.2.26

func (m *ForceRepairRequest) GetAuthPid() string

func (*ForceRepairRequest) GetFileHash added in v0.2.26

func (m *ForceRepairRequest) GetFileHash() string

func (*ForceRepairRequest) GetRenterPid added in v0.2.26

func (m *ForceRepairRequest) GetRenterPid() string

func (*ForceRepairRequest) GetSignature added in v0.2.26

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

func (*ForceRepairRequest) Marshal added in v0.2.26

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

func (*ForceRepairRequest) MarshalTo added in v0.2.26

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

func (*ForceRepairRequest) MarshalToSizedBuffer added in v0.2.26

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

func (*ForceRepairRequest) ProtoMessage added in v0.2.26

func (*ForceRepairRequest) ProtoMessage()

func (*ForceRepairRequest) Reset added in v0.2.26

func (m *ForceRepairRequest) Reset()

func (*ForceRepairRequest) Size added in v0.2.26

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

func (*ForceRepairRequest) String added in v0.2.26

func (m *ForceRepairRequest) String() string

func (*ForceRepairRequest) Unmarshal added in v0.2.26

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

func (*ForceRepairRequest) XXX_DiscardUnknown added in v0.2.26

func (m *ForceRepairRequest) XXX_DiscardUnknown()

func (*ForceRepairRequest) XXX_Marshal added in v0.2.26

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

func (*ForceRepairRequest) XXX_Merge added in v0.2.26

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

func (*ForceRepairRequest) XXX_MessageName added in v0.2.26

func (*ForceRepairRequest) XXX_MessageName() string

func (*ForceRepairRequest) XXX_Size added in v0.2.26

func (m *ForceRepairRequest) XXX_Size() int

func (*ForceRepairRequest) XXX_Unmarshal added in v0.2.26

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 added in v0.7.8

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 added in v0.7.8

func NewPopulatedHostStatus(r randyGuard, easy bool) *HostStatus

func (*HostStatus) Descriptor added in v0.7.8

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

func (*HostStatus) GetFileSize added in v0.7.8

func (m *HostStatus) GetFileSize() int64

func (*HostStatus) GetHostPid added in v0.7.8

func (m *HostStatus) GetHostPid() string

func (*HostStatus) GetRewardBtt added in v0.7.8

func (m *HostStatus) GetRewardBtt() int64

func (*HostStatus) GetSuspectCheat added in v0.7.8

func (m *HostStatus) GetSuspectCheat() bool

func (*HostStatus) GetWorkAmount added in v0.7.8

func (m *HostStatus) GetWorkAmount() int64

func (*HostStatus) Marshal added in v0.7.8

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

func (*HostStatus) MarshalTo added in v0.7.8

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

func (*HostStatus) MarshalToSizedBuffer added in v0.7.8

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

func (*HostStatus) ProtoMessage added in v0.7.8

func (*HostStatus) ProtoMessage()

func (*HostStatus) Reset added in v0.7.8

func (m *HostStatus) Reset()

func (*HostStatus) Size added in v0.7.8

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

func (*HostStatus) String added in v0.7.8

func (m *HostStatus) String() string

func (*HostStatus) Unmarshal added in v0.7.8

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

func (*HostStatus) XXX_DiscardUnknown added in v0.7.8

func (m *HostStatus) XXX_DiscardUnknown()

func (*HostStatus) XXX_Marshal added in v0.7.8

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

func (*HostStatus) XXX_Merge added in v0.7.8

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

func (*HostStatus) XXX_MessageName added in v0.7.8

func (*HostStatus) XXX_MessageName() string

func (*HostStatus) XXX_Size added in v0.7.8

func (m *HostStatus) XXX_Size() int

func (*HostStatus) XXX_Unmarshal added in v0.7.8

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

type HostSummary added in v0.7.8

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 added in v0.7.8

func NewPopulatedHostSummary(r randyGuard, easy bool) *HostSummary

func (*HostSummary) Descriptor added in v0.7.8

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

func (*HostSummary) GetPreparerPid added in v0.7.8

func (m *HostSummary) GetPreparerPid() string

func (*HostSummary) GetQueryDate added in v0.7.8

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

func (*HostSummary) GetRecordCount added in v0.7.8

func (m *HostSummary) GetRecordCount() int32

func (*HostSummary) GetResponseTime added in v0.7.8

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

func (*HostSummary) GetSignature added in v0.7.8

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

func (*HostSummary) GetStatus added in v0.7.8

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

func (*HostSummary) Marshal added in v0.7.8

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

func (*HostSummary) MarshalTo added in v0.7.8

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

func (*HostSummary) MarshalToSizedBuffer added in v0.7.8

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

func (*HostSummary) ProtoMessage added in v0.7.8

func (*HostSummary) ProtoMessage()

func (*HostSummary) Reset added in v0.7.8

func (m *HostSummary) Reset()

func (*HostSummary) Size added in v0.7.8

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

func (*HostSummary) String added in v0.7.8

func (m *HostSummary) String() string

func (*HostSummary) Unmarshal added in v0.7.8

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

func (*HostSummary) XXX_DiscardUnknown added in v0.7.8

func (m *HostSummary) XXX_DiscardUnknown()

func (*HostSummary) XXX_Marshal added in v0.7.8

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

func (*HostSummary) XXX_Merge added in v0.7.8

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

func (*HostSummary) XXX_MessageName added in v0.7.8

func (*HostSummary) XXX_MessageName() string

func (*HostSummary) XXX_Size added in v0.7.8

func (m *HostSummary) XXX_Size() int

func (*HostSummary) XXX_Unmarshal added in v0.7.8

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

type ListHostContractsRequest added in v0.3.3

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 added in v0.3.3

func NewPopulatedListHostContractsRequest(r randyGuard, easy bool) *ListHostContractsRequest

func (*ListHostContractsRequest) Descriptor added in v0.3.3

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

func (*ListHostContractsRequest) GetHostPid added in v0.3.3

func (m *ListHostContractsRequest) GetHostPid() string

func (*ListHostContractsRequest) GetLastModifyTimeSince added in v0.3.3

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

func (*ListHostContractsRequest) GetLastModifyTimeTo added in v0.3.3

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

func (*ListHostContractsRequest) GetRequestPageIndex added in v0.3.3

func (m *ListHostContractsRequest) GetRequestPageIndex() int32

func (*ListHostContractsRequest) GetRequestPageSize added in v0.3.3

func (m *ListHostContractsRequest) GetRequestPageSize() int32

func (*ListHostContractsRequest) GetRequestTime added in v0.3.3

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

func (*ListHostContractsRequest) GetRequesterPid added in v0.3.3

func (m *ListHostContractsRequest) GetRequesterPid() string

func (*ListHostContractsRequest) GetSignature added in v0.3.3

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

func (*ListHostContractsRequest) GetState added in v0.3.3

func (*ListHostContractsRequest) Marshal added in v0.3.3

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

func (*ListHostContractsRequest) MarshalTo added in v0.3.3

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

func (*ListHostContractsRequest) MarshalToSizedBuffer added in v0.3.3

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

func (*ListHostContractsRequest) ProtoMessage added in v0.3.3

func (*ListHostContractsRequest) ProtoMessage()

func (*ListHostContractsRequest) Reset added in v0.3.3

func (m *ListHostContractsRequest) Reset()

func (*ListHostContractsRequest) Size added in v0.3.3

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

func (*ListHostContractsRequest) String added in v0.3.3

func (m *ListHostContractsRequest) String() string

func (*ListHostContractsRequest) Unmarshal added in v0.3.3

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

func (*ListHostContractsRequest) XXX_DiscardUnknown added in v0.3.3

func (m *ListHostContractsRequest) XXX_DiscardUnknown()

func (*ListHostContractsRequest) XXX_Marshal added in v0.3.3

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

func (*ListHostContractsRequest) XXX_Merge added in v0.3.3

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

func (*ListHostContractsRequest) XXX_MessageName added in v0.3.3

func (*ListHostContractsRequest) XXX_MessageName() string

func (*ListHostContractsRequest) XXX_Size added in v0.3.3

func (m *ListHostContractsRequest) XXX_Size() int

func (*ListHostContractsRequest) XXX_Unmarshal added in v0.3.3

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

type ListHostContractsRequest_SelectState added in v0.3.3

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

func (ListHostContractsRequest_SelectState) EnumDescriptor added in v0.3.3

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

func (ListHostContractsRequest_SelectState) String added in v0.3.3

type ListRenterFileInfoRequest added in v0.4.8

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 added in v0.4.8

func NewPopulatedListRenterFileInfoRequest(r randyGuard, easy bool) *ListRenterFileInfoRequest

func (*ListRenterFileInfoRequest) Descriptor added in v0.4.8

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

func (*ListRenterFileInfoRequest) GetLastModifyTime added in v0.5.1

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

func (*ListRenterFileInfoRequest) GetRenterPid added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRenterPid() string

func (*ListRenterFileInfoRequest) GetRequestPageIndex added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRequestPageIndex() int32

func (*ListRenterFileInfoRequest) GetRequestPageSize added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRequestPageSize() int32

func (*ListRenterFileInfoRequest) GetRequestTime added in v0.4.8

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

func (*ListRenterFileInfoRequest) GetRequesterPid added in v0.4.8

func (m *ListRenterFileInfoRequest) GetRequesterPid() string

func (*ListRenterFileInfoRequest) GetSignature added in v0.4.8

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

func (*ListRenterFileInfoRequest) Marshal added in v0.4.8

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

func (*ListRenterFileInfoRequest) MarshalTo added in v0.4.8

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

func (*ListRenterFileInfoRequest) MarshalToSizedBuffer added in v0.4.8

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

func (*ListRenterFileInfoRequest) ProtoMessage added in v0.4.8

func (*ListRenterFileInfoRequest) ProtoMessage()

func (*ListRenterFileInfoRequest) Reset added in v0.4.8

func (m *ListRenterFileInfoRequest) Reset()

func (*ListRenterFileInfoRequest) Size added in v0.4.8

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

func (*ListRenterFileInfoRequest) String added in v0.4.8

func (m *ListRenterFileInfoRequest) String() string

func (*ListRenterFileInfoRequest) Unmarshal added in v0.4.8

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

func (*ListRenterFileInfoRequest) XXX_DiscardUnknown added in v0.4.8

func (m *ListRenterFileInfoRequest) XXX_DiscardUnknown()

func (*ListRenterFileInfoRequest) XXX_Marshal added in v0.4.8

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

func (*ListRenterFileInfoRequest) XXX_Merge added in v0.4.8

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

func (*ListRenterFileInfoRequest) XXX_MessageName added in v0.4.8

func (*ListRenterFileInfoRequest) XXX_MessageName() string

func (*ListRenterFileInfoRequest) XXX_Size added in v0.4.8

func (m *ListRenterFileInfoRequest) XXX_Size() int

func (*ListRenterFileInfoRequest) XXX_Unmarshal added in v0.4.8

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 added in v0.3.1

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 added in v0.1.2

func (m *Log) GetOriginatorPid() string

func (*Log) Marshal added in v0.0.13

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

func (*Log) MarshalTo added in v0.0.13

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

func (*Log) MarshalToSizedBuffer added in v0.0.13

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

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) Size added in v0.0.13

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

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.3.1

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 added in v0.1.2

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 added in v0.0.13

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

func (*ProofOfReplicateChallenge) MarshalTo added in v0.0.13

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

func (*ProofOfReplicateChallenge) MarshalToSizedBuffer added in v0.0.13

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

func (*ProofOfReplicateChallenge) ProtoMessage

func (*ProofOfReplicateChallenge) ProtoMessage()

func (*ProofOfReplicateChallenge) Reset

func (m *ProofOfReplicateChallenge) Reset()

func (*ProofOfReplicateChallenge) Size added in v0.0.13

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

func (*ProofOfReplicateChallenge) String

func (m *ProofOfReplicateChallenge) String() string

func (*ProofOfReplicateChallenge) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.2.26

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 added in v0.3.1

func NewPopulatedReadyForChallengeRequest(r randyGuard, easy bool) *ReadyForChallengeRequest

func (*ReadyForChallengeRequest) Descriptor added in v0.2.26

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

func (*ReadyForChallengeRequest) GetContractId added in v0.2.26

func (m *ReadyForChallengeRequest) GetContractId() string

func (*ReadyForChallengeRequest) GetFileHash added in v0.2.26

func (m *ReadyForChallengeRequest) GetFileHash() string

func (*ReadyForChallengeRequest) GetHostPid added in v0.2.26

func (m *ReadyForChallengeRequest) GetHostPid() string

func (*ReadyForChallengeRequest) GetIsRepair added in v0.7.0

func (m *ReadyForChallengeRequest) GetIsRepair() bool

func (*ReadyForChallengeRequest) GetPrepareTime added in v0.2.26

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

func (*ReadyForChallengeRequest) GetRenterPid added in v0.2.26

func (m *ReadyForChallengeRequest) GetRenterPid() string

func (*ReadyForChallengeRequest) GetShardHash added in v0.2.26

func (m *ReadyForChallengeRequest) GetShardHash() string

func (*ReadyForChallengeRequest) GetSignature added in v0.2.26

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

func (*ReadyForChallengeRequest) Marshal added in v0.2.26

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

func (*ReadyForChallengeRequest) MarshalTo added in v0.2.26

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

func (*ReadyForChallengeRequest) MarshalToSizedBuffer added in v0.2.26

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

func (*ReadyForChallengeRequest) ProtoMessage added in v0.2.26

func (*ReadyForChallengeRequest) ProtoMessage()

func (*ReadyForChallengeRequest) Reset added in v0.2.26

func (m *ReadyForChallengeRequest) Reset()

func (*ReadyForChallengeRequest) Size added in v0.2.26

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

func (*ReadyForChallengeRequest) String added in v0.2.26

func (m *ReadyForChallengeRequest) String() string

func (*ReadyForChallengeRequest) Unmarshal added in v0.2.26

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

func (*ReadyForChallengeRequest) XXX_DiscardUnknown added in v0.2.26

func (m *ReadyForChallengeRequest) XXX_DiscardUnknown()

func (*ReadyForChallengeRequest) XXX_Marshal added in v0.2.26

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

func (*ReadyForChallengeRequest) XXX_Merge added in v0.2.26

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

func (*ReadyForChallengeRequest) XXX_MessageName added in v0.2.26

func (*ReadyForChallengeRequest) XXX_MessageName() string

func (*ReadyForChallengeRequest) XXX_Size added in v0.2.26

func (m *ReadyForChallengeRequest) XXX_Size() int

func (*ReadyForChallengeRequest) XXX_Unmarshal added in v0.2.26

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

type RepairContract added in v0.7.0

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 added in v0.7.0

func NewPopulatedRepairContract(r randyGuard, easy bool) *RepairContract

func (*RepairContract) Descriptor added in v0.7.0

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

func (*RepairContract) GetDownloadContractId added in v0.7.0

func (m *RepairContract) GetDownloadContractId() string

func (*RepairContract) GetDownloadRewardAmount added in v0.7.0

func (m *RepairContract) GetDownloadRewardAmount() int64

func (*RepairContract) GetFileHash added in v0.7.0

func (m *RepairContract) GetFileHash() string

func (*RepairContract) GetFileSize added in v0.7.0

func (m *RepairContract) GetFileSize() int64

func (*RepairContract) GetGuardSignTime added in v0.7.0

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

func (*RepairContract) GetGuardSignature added in v0.7.0

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

func (*RepairContract) GetLostShardHash added in v0.7.0

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

func (*RepairContract) GetRepairContractId added in v0.7.0

func (m *RepairContract) GetRepairContractId() string

func (*RepairContract) GetRepairPid added in v0.7.0

func (m *RepairContract) GetRepairPid() string

func (*RepairContract) GetRepairRewardAmount added in v0.7.0

func (m *RepairContract) GetRepairRewardAmount() int64

func (*RepairContract) GetRepairSignTime added in v0.7.0

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

func (*RepairContract) GetRepairSignature added in v0.7.0

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

func (*RepairContract) Marshal added in v0.7.0

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

func (*RepairContract) MarshalTo added in v0.7.0

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

func (*RepairContract) MarshalToSizedBuffer added in v0.7.0

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

func (*RepairContract) ProtoMessage added in v0.7.0

func (*RepairContract) ProtoMessage()

func (*RepairContract) Reset added in v0.7.0

func (m *RepairContract) Reset()

func (*RepairContract) Size added in v0.7.0

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

func (*RepairContract) String added in v0.7.0

func (m *RepairContract) String() string

func (*RepairContract) Unmarshal added in v0.7.0

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

func (*RepairContract) XXX_DiscardUnknown added in v0.7.0

func (m *RepairContract) XXX_DiscardUnknown()

func (*RepairContract) XXX_Marshal added in v0.7.0

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

func (*RepairContract) XXX_Merge added in v0.7.0

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

func (*RepairContract) XXX_MessageName added in v0.7.0

func (*RepairContract) XXX_MessageName() string

func (*RepairContract) XXX_Size added in v0.7.0

func (m *RepairContract) XXX_Size() int

func (*RepairContract) XXX_Unmarshal added in v0.7.0

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

type RepairContractResponse added in v0.7.0

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 added in v0.7.0

func NewPopulatedRepairContractResponse(r randyGuard, easy bool) *RepairContractResponse

func (*RepairContractResponse) Descriptor added in v0.7.0

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

func (*RepairContractResponse) GetContract added in v0.7.0

func (m *RepairContractResponse) GetContract() *RepairContract

func (*RepairContractResponse) GetStatus added in v0.7.0

func (*RepairContractResponse) Marshal added in v0.7.0

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

func (*RepairContractResponse) MarshalTo added in v0.7.0

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

func (*RepairContractResponse) MarshalToSizedBuffer added in v0.7.0

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

func (*RepairContractResponse) ProtoMessage added in v0.7.0

func (*RepairContractResponse) ProtoMessage()

func (*RepairContractResponse) Reset added in v0.7.0

func (m *RepairContractResponse) Reset()

func (*RepairContractResponse) Size added in v0.7.0

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

func (*RepairContractResponse) String added in v0.7.0

func (m *RepairContractResponse) String() string

func (*RepairContractResponse) Unmarshal added in v0.7.0

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

func (*RepairContractResponse) XXX_DiscardUnknown added in v0.7.0

func (m *RepairContractResponse) XXX_DiscardUnknown()

func (*RepairContractResponse) XXX_Marshal added in v0.7.0

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

func (*RepairContractResponse) XXX_Merge added in v0.7.0

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

func (*RepairContractResponse) XXX_MessageName added in v0.7.0

func (*RepairContractResponse) XXX_MessageName() string

func (*RepairContractResponse) XXX_Size added in v0.7.0

func (m *RepairContractResponse) XXX_Size() int

func (*RepairContractResponse) XXX_Unmarshal added in v0.7.0

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

type RepairContractResponse_ContractResponseStatus added in v0.7.0

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 added in v0.7.0

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

func (RepairContractResponse_ContractResponseStatus) String added in v0.7.0

type RequestChallengeQuestion added in v0.5.7

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 added in v0.5.7

func NewPopulatedRequestChallengeQuestion(r randyGuard, easy bool) *RequestChallengeQuestion

func (*RequestChallengeQuestion) Descriptor added in v0.5.7

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

func (*RequestChallengeQuestion) GetFileHash added in v0.7.0

func (m *RequestChallengeQuestion) GetFileHash() string

func (*RequestChallengeQuestion) GetIsRepair added in v0.7.0

func (m *RequestChallengeQuestion) GetIsRepair() bool

func (*RequestChallengeQuestion) GetPrepareTime added in v0.5.7

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

func (*RequestChallengeQuestion) GetQuestion added in v0.5.7

func (m *RequestChallengeQuestion) GetQuestion() *ChallengeQuestion

func (*RequestChallengeQuestion) GetSignature added in v0.5.7

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

func (*RequestChallengeQuestion) Marshal added in v0.5.7

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

func (*RequestChallengeQuestion) MarshalTo added in v0.5.7

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

func (*RequestChallengeQuestion) MarshalToSizedBuffer added in v0.5.7

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

func (*RequestChallengeQuestion) ProtoMessage added in v0.5.7

func (*RequestChallengeQuestion) ProtoMessage()

func (*RequestChallengeQuestion) Reset added in v0.5.7

func (m *RequestChallengeQuestion) Reset()

func (*RequestChallengeQuestion) Size added in v0.5.7

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

func (*RequestChallengeQuestion) String added in v0.5.7

func (m *RequestChallengeQuestion) String() string

func (*RequestChallengeQuestion) Unmarshal added in v0.5.7

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

func (*RequestChallengeQuestion) XXX_DiscardUnknown added in v0.5.7

func (m *RequestChallengeQuestion) XXX_DiscardUnknown()

func (*RequestChallengeQuestion) XXX_Marshal added in v0.5.7

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

func (*RequestChallengeQuestion) XXX_Merge added in v0.5.7

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

func (*RequestChallengeQuestion) XXX_MessageName added in v0.5.7

func (*RequestChallengeQuestion) XXX_MessageName() string

func (*RequestChallengeQuestion) XXX_Size added in v0.5.7

func (m *RequestChallengeQuestion) XXX_Size() int

func (*RequestChallengeQuestion) XXX_Unmarshal added in v0.5.7

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

type RequestRepairContracts added in v0.7.0

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 added in v0.7.0

func NewPopulatedRequestRepairContracts(r randyGuard, easy bool) *RequestRepairContracts

func (*RequestRepairContracts) Descriptor added in v0.7.0

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

func (*RequestRepairContracts) GetFileHash added in v0.7.0

func (m *RequestRepairContracts) GetFileHash() string

func (*RequestRepairContracts) GetRepairNode added in v0.7.0

func (m *RequestRepairContracts) GetRepairNode() string

func (*RequestRepairContracts) GetRepairSignTime added in v0.7.0

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

func (*RequestRepairContracts) GetRepairSignature added in v0.7.0

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

func (*RequestRepairContracts) Marshal added in v0.7.0

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

func (*RequestRepairContracts) MarshalTo added in v0.7.0

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

func (*RequestRepairContracts) MarshalToSizedBuffer added in v0.7.0

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

func (*RequestRepairContracts) ProtoMessage added in v0.7.0

func (*RequestRepairContracts) ProtoMessage()

func (*RequestRepairContracts) Reset added in v0.7.0

func (m *RequestRepairContracts) Reset()

func (*RequestRepairContracts) Size added in v0.7.0

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

func (*RequestRepairContracts) String added in v0.7.0

func (m *RequestRepairContracts) String() string

func (*RequestRepairContracts) Unmarshal added in v0.7.0

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

func (*RequestRepairContracts) XXX_DiscardUnknown added in v0.7.0

func (m *RequestRepairContracts) XXX_DiscardUnknown()

func (*RequestRepairContracts) XXX_Marshal added in v0.7.0

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

func (*RequestRepairContracts) XXX_Merge added in v0.7.0

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

func (*RequestRepairContracts) XXX_MessageName added in v0.7.0

func (*RequestRepairContracts) XXX_MessageName() string

func (*RequestRepairContracts) XXX_Size added in v0.7.0

func (m *RequestRepairContracts) XXX_Size() int

func (*RequestRepairContracts) XXX_Unmarshal added in v0.7.0

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

type ResponseChallengeQuestion added in v0.5.7

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 added in v0.5.7

func NewPopulatedResponseChallengeQuestion(r randyGuard, easy bool) *ResponseChallengeQuestion

func (*ResponseChallengeQuestion) Descriptor added in v0.5.7

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

func (*ResponseChallengeQuestion) GetAnswer added in v0.5.7

func (*ResponseChallengeQuestion) GetFileHash added in v0.7.0

func (m *ResponseChallengeQuestion) GetFileHash() string

func (*ResponseChallengeQuestion) GetHostPid added in v0.5.7

func (m *ResponseChallengeQuestion) GetHostPid() string

func (*ResponseChallengeQuestion) GetIsRepair added in v0.7.0

func (m *ResponseChallengeQuestion) GetIsRepair() bool

func (*ResponseChallengeQuestion) GetResolveTime added in v0.5.7

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

func (*ResponseChallengeQuestion) GetSignature added in v0.5.7

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

func (*ResponseChallengeQuestion) Marshal added in v0.5.7

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

func (*ResponseChallengeQuestion) MarshalTo added in v0.5.7

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

func (*ResponseChallengeQuestion) MarshalToSizedBuffer added in v0.5.7

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

func (*ResponseChallengeQuestion) ProtoMessage added in v0.5.7

func (*ResponseChallengeQuestion) ProtoMessage()

func (*ResponseChallengeQuestion) Reset added in v0.5.7

func (m *ResponseChallengeQuestion) Reset()

func (*ResponseChallengeQuestion) Size added in v0.5.7

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

func (*ResponseChallengeQuestion) String added in v0.5.7

func (m *ResponseChallengeQuestion) String() string

func (*ResponseChallengeQuestion) Unmarshal added in v0.5.7

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

func (*ResponseChallengeQuestion) XXX_DiscardUnknown added in v0.5.7

func (m *ResponseChallengeQuestion) XXX_DiscardUnknown()

func (*ResponseChallengeQuestion) XXX_Marshal added in v0.5.7

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

func (*ResponseChallengeQuestion) XXX_Merge added in v0.5.7

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

func (*ResponseChallengeQuestion) XXX_MessageName added in v0.5.7

func (*ResponseChallengeQuestion) XXX_MessageName() string

func (*ResponseChallengeQuestion) XXX_Size added in v0.5.7

func (m *ResponseChallengeQuestion) XXX_Size() int

func (*ResponseChallengeQuestion) XXX_Unmarshal added in v0.5.7

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 added in v0.7.0

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 added in v0.7.0

func NewPopulatedResponseRepairContracts(r randyGuard, easy bool) *ResponseRepairContracts

func (*ResponseRepairContracts) Descriptor added in v0.7.0

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

func (*ResponseRepairContracts) GetFileHash added in v0.7.0

func (m *ResponseRepairContracts) GetFileHash() string

func (*ResponseRepairContracts) GetGuardPid added in v0.7.0

func (m *ResponseRepairContracts) GetGuardPid() string

func (*ResponseRepairContracts) GetGuardSignature added in v0.7.0

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

func (*ResponseRepairContracts) GetRepairNode added in v0.7.0

func (m *ResponseRepairContracts) GetRepairNode() string

func (*ResponseRepairContracts) GetSignTime added in v0.7.0

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

func (*ResponseRepairContracts) GetState added in v0.7.0

func (*ResponseRepairContracts) GetStatus added in v0.7.0

func (m *ResponseRepairContracts) GetStatus() *FileStoreStatus

func (*ResponseRepairContracts) Marshal added in v0.7.0

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

func (*ResponseRepairContracts) MarshalTo added in v0.7.0

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

func (*ResponseRepairContracts) MarshalToSizedBuffer added in v0.7.0

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

func (*ResponseRepairContracts) ProtoMessage added in v0.7.0

func (*ResponseRepairContracts) ProtoMessage()

func (*ResponseRepairContracts) Reset added in v0.7.0

func (m *ResponseRepairContracts) Reset()

func (*ResponseRepairContracts) Size added in v0.7.0

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

func (*ResponseRepairContracts) String added in v0.7.0

func (m *ResponseRepairContracts) String() string

func (*ResponseRepairContracts) Unmarshal added in v0.7.0

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

func (*ResponseRepairContracts) XXX_DiscardUnknown added in v0.7.0

func (m *ResponseRepairContracts) XXX_DiscardUnknown()

func (*ResponseRepairContracts) XXX_Marshal added in v0.7.0

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

func (*ResponseRepairContracts) XXX_Merge added in v0.7.0

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

func (*ResponseRepairContracts) XXX_MessageName added in v0.7.0

func (*ResponseRepairContracts) XXX_MessageName() string

func (*ResponseRepairContracts) XXX_Size added in v0.7.0

func (m *ResponseRepairContracts) XXX_Size() int

func (*ResponseRepairContracts) XXX_Unmarshal added in v0.7.0

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

type ResponseRepairContracts_RepairStat added in v0.7.0

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 added in v0.7.0

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

func (ResponseRepairContracts_RepairStat) String added in v0.7.0

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 added in v0.3.1

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 added in v0.0.13

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

func (*Result) MarshalTo added in v0.0.13

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

func (*Result) MarshalToSizedBuffer added in v0.0.13

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

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) Size added in v0.0.13

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

func (*Result) String

func (m *Result) String() string

func (*Result) Unmarshal added in v0.0.13

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 added in v0.0.13

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 added in v0.0.9

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 added in v0.3.1

func NewPopulatedShardChallengeQuestions(r randyGuard, easy bool) *ShardChallengeQuestions

func (*ShardChallengeQuestions) Descriptor added in v0.0.9

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

func (*ShardChallengeQuestions) GetFileHash added in v0.0.9

func (m *ShardChallengeQuestions) GetFileHash() string

func (*ShardChallengeQuestions) GetPrepareTime added in v0.0.9

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

func (*ShardChallengeQuestions) GetPreparerPid added in v0.1.2

func (m *ShardChallengeQuestions) GetPreparerPid() string

func (*ShardChallengeQuestions) GetPreparerSignature added in v0.0.9

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

func (*ShardChallengeQuestions) GetQuestionCount added in v0.0.9

func (m *ShardChallengeQuestions) GetQuestionCount() int32

func (*ShardChallengeQuestions) GetQuestions added in v0.0.9

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

func (*ShardChallengeQuestions) GetShardHash added in v0.0.9

func (m *ShardChallengeQuestions) GetShardHash() string

func (*ShardChallengeQuestions) Marshal added in v0.0.13

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

func (*ShardChallengeQuestions) MarshalTo added in v0.0.13

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

func (*ShardChallengeQuestions) MarshalToSizedBuffer added in v0.0.13

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

func (*ShardChallengeQuestions) ProtoMessage added in v0.0.9

func (*ShardChallengeQuestions) ProtoMessage()

func (*ShardChallengeQuestions) Reset added in v0.0.9

func (m *ShardChallengeQuestions) Reset()

func (*ShardChallengeQuestions) Size added in v0.0.13

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

func (*ShardChallengeQuestions) String added in v0.0.9

func (m *ShardChallengeQuestions) String() string

func (*ShardChallengeQuestions) Unmarshal added in v0.0.13

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

func (*ShardChallengeQuestions) XXX_DiscardUnknown added in v0.0.9

func (m *ShardChallengeQuestions) XXX_DiscardUnknown()

func (*ShardChallengeQuestions) XXX_Marshal added in v0.0.9

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

func (*ShardChallengeQuestions) XXX_Merge added in v0.0.9

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

func (*ShardChallengeQuestions) XXX_MessageName added in v0.0.13

func (*ShardChallengeQuestions) XXX_MessageName() string

func (*ShardChallengeQuestions) XXX_Size added in v0.0.9

func (m *ShardChallengeQuestions) XXX_Size() int

func (*ShardChallengeQuestions) XXX_Unmarshal added in v0.0.9

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

type ShardChallengeResult added in v0.7.7

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 added in v0.7.7

func NewPopulatedShardChallengeResult(r randyGuard, easy bool) *ShardChallengeResult

func (*ShardChallengeResult) Descriptor added in v0.7.7

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

func (*ShardChallengeResult) GetFileHash added in v0.7.7

func (m *ShardChallengeResult) GetFileHash() string

func (*ShardChallengeResult) GetHostPid added in v0.7.7

func (m *ShardChallengeResult) GetHostPid() string

func (*ShardChallengeResult) GetIsTimeout added in v0.7.7

func (m *ShardChallengeResult) GetIsTimeout() bool

func (*ShardChallengeResult) GetNonce added in v0.7.7

func (m *ShardChallengeResult) GetNonce() string

func (*ShardChallengeResult) GetResult added in v0.7.7

func (m *ShardChallengeResult) GetResult() string

func (*ShardChallengeResult) GetShardHash added in v0.7.7

func (m *ShardChallengeResult) GetShardHash() string

func (*ShardChallengeResult) Marshal added in v0.7.7

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

func (*ShardChallengeResult) MarshalTo added in v0.7.7

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

func (*ShardChallengeResult) MarshalToSizedBuffer added in v0.7.7

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

func (*ShardChallengeResult) ProtoMessage added in v0.7.7

func (*ShardChallengeResult) ProtoMessage()

func (*ShardChallengeResult) Reset added in v0.7.7

func (m *ShardChallengeResult) Reset()

func (*ShardChallengeResult) Size added in v0.7.7

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

func (*ShardChallengeResult) String added in v0.7.7

func (m *ShardChallengeResult) String() string

func (*ShardChallengeResult) Unmarshal added in v0.7.7

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

func (*ShardChallengeResult) XXX_DiscardUnknown added in v0.7.7

func (m *ShardChallengeResult) XXX_DiscardUnknown()

func (*ShardChallengeResult) XXX_Marshal added in v0.7.7

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

func (*ShardChallengeResult) XXX_Merge added in v0.7.7

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

func (*ShardChallengeResult) XXX_MessageName added in v0.7.7

func (*ShardChallengeResult) XXX_MessageName() string

func (*ShardChallengeResult) XXX_Size added in v0.7.7

func (m *ShardChallengeResult) XXX_Size() int

func (*ShardChallengeResult) XXX_Unmarshal added in v0.7.7

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

type TotalStateSummary added in v0.7.21

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 added in v0.7.21

func NewPopulatedTotalStateSummary(r randyGuard, easy bool) *TotalStateSummary

func (*TotalStateSummary) Descriptor added in v0.7.21

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

func (*TotalStateSummary) GetExistedShardSize added in v0.7.21

func (m *TotalStateSummary) GetExistedShardSize() int64

func (*TotalStateSummary) GetInvalidContractCount added in v0.7.21

func (m *TotalStateSummary) GetInvalidContractCount() int64

func (*TotalStateSummary) GetLostShardSize added in v0.7.21

func (m *TotalStateSummary) GetLostShardSize() int64

func (*TotalStateSummary) GetPreparerPid added in v0.7.21

func (m *TotalStateSummary) GetPreparerPid() string

func (*TotalStateSummary) GetQueryDate added in v0.7.21

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

func (*TotalStateSummary) GetResponseTime added in v0.7.21

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

func (*TotalStateSummary) GetSignature added in v0.7.21

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

func (*TotalStateSummary) GetTotalHostReward added in v0.7.23

func (m *TotalStateSummary) GetTotalHostReward() int64

func (*TotalStateSummary) GetTotalTrxReward added in v0.8.13

func (m *TotalStateSummary) GetTotalTrxReward() int64

func (*TotalStateSummary) GetTotalUsddReward added in v0.8.13

func (m *TotalStateSummary) GetTotalUsddReward() int64

func (*TotalStateSummary) GetTotalUsdtReward added in v0.8.13

func (m *TotalStateSummary) GetTotalUsdtReward() int64

func (*TotalStateSummary) GetTotalWbttReward added in v0.8.13

func (m *TotalStateSummary) GetTotalWbttReward() int64

func (*TotalStateSummary) GetValidContractCount added in v0.7.21

func (m *TotalStateSummary) GetValidContractCount() int64

func (*TotalStateSummary) Marshal added in v0.7.21

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

func (*TotalStateSummary) MarshalTo added in v0.7.21

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

func (*TotalStateSummary) MarshalToSizedBuffer added in v0.7.21

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

func (*TotalStateSummary) ProtoMessage added in v0.7.21

func (*TotalStateSummary) ProtoMessage()

func (*TotalStateSummary) Reset added in v0.7.21

func (m *TotalStateSummary) Reset()

func (*TotalStateSummary) Size added in v0.7.21

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

func (*TotalStateSummary) String added in v0.7.21

func (m *TotalStateSummary) String() string

func (*TotalStateSummary) Unmarshal added in v0.7.21

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

func (*TotalStateSummary) XXX_DiscardUnknown added in v0.7.21

func (m *TotalStateSummary) XXX_DiscardUnknown()

func (*TotalStateSummary) XXX_Marshal added in v0.7.21

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

func (*TotalStateSummary) XXX_Merge added in v0.7.21

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

func (*TotalStateSummary) XXX_MessageName added in v0.7.21

func (*TotalStateSummary) XXX_MessageName() string

func (*TotalStateSummary) XXX_Size added in v0.7.21

func (m *TotalStateSummary) XXX_Size() int

func (*TotalStateSummary) XXX_Unmarshal added in v0.7.21

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 added in v0.7.8

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

func (*UnimplementedGuardServiceServer) AdminGetDailyHostsRankTotal added in v0.7.8

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

func (*UnimplementedGuardServiceServer) AdminGetDailySummary added in v0.7.8

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

func (*UnimplementedGuardServiceServer) AdminGetDailyTotalState added in v0.7.21

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

func (*UnimplementedGuardServiceServer) CheckFileStoreMeta

func (*UnimplementedGuardServiceServer) ForceRepair added in v0.2.26

func (*UnimplementedGuardServiceServer) ListHostContracts added in v0.3.3

func (*UnimplementedGuardServiceServer) ReadyForChallenge added in v0.2.26

func (*UnimplementedGuardServiceServer) ReportFailToDownload added in v0.7.0

func (*UnimplementedGuardServiceServer) RequestChallenge added in v0.5.7

func (*UnimplementedGuardServiceServer) RequestForChallengeJob added in v0.7.7

func (*UnimplementedGuardServiceServer) RequestForRepairContracts added in v0.7.0

func (*UnimplementedGuardServiceServer) ResponseChallenge added in v0.5.7

func (*UnimplementedGuardServiceServer) RetrieveFileInfo added in v0.4.8

func (*UnimplementedGuardServiceServer) SendQuestions

func (*UnimplementedGuardServiceServer) SubmitChallengeJobResult added in v0.7.7

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 added in v0.7.0

Jump to

Keyboard shortcuts

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