Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBatchSize = 10
View Source
const ErrorSendingRequest = `` /* 200-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputValidityProof ¶
type OutputValidityProof struct { InputIndexWithinEpoch int `json:"inputIndexWithinEpoch"` OutputIndexWithinInput int `json:"outputIndexWithinInput"` OutputHashesRootHash string `json:"outputHashesRootHash"` VouchersEpochRootHash string `json:"vouchersEpochRootHash"` NoticesEpochRootHash string `json:"noticesEpochRootHash"` MachineStateHash string `json:"machineStateHash"` OutputHashInOutputHashesSiblings []string `json:"outputHashInOutputHashesSiblings"` OutputHashesInEpochSiblings []string `json:"outputHashesInEpochSiblings"` }
type Proof ¶
type Proof struct { Validity OutputValidityProof `json:"validity"` Context string `json:"context"` }
type Synchronizer ¶
type Synchronizer struct { VoucherFetcher *VoucherFetcher SynchronizerRepository *repository.SynchronizerRepository // contains filtered or unexported fields }
func NewSynchronizer ¶
func NewSynchronizer( decoder *decoder.OutputDecoder, voucherFetcher *VoucherFetcher, SynchronizerRepository *repository.SynchronizerRepository, ) *Synchronizer
func (Synchronizer) Start ¶
func (x Synchronizer) Start(ctx context.Context, ready chan<- struct{}) error
func (Synchronizer) String ¶
func (x Synchronizer) String() string
String implements supervisor.Worker.
func (*Synchronizer) VoucherPolling ¶
func (x *Synchronizer) VoucherPolling(ctx context.Context) error
type VoucherConnection ¶
type VoucherConnection struct { TotalCount int `json:"totalCount"` Edges []VoucherEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` }
type VoucherData ¶
type VoucherData struct {
Vouchers VoucherConnection `json:"vouchers"`
}
type VoucherEdge ¶
type VoucherFetcher ¶
func NewVoucherFetcher ¶
func NewVoucherFetcher() *VoucherFetcher
func (*VoucherFetcher) Fetch ¶
func (v *VoucherFetcher) Fetch() (*VoucherResponse, error)
type VoucherResponse ¶
type VoucherResponse struct {
Data VoucherData `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.