Versions in this module Expand all Collapse all v0 v0.0.2 Oct 31, 2023 Changes in this version + var ErrIntOverflowHashEpoch = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTransactionsGroupMetadata = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthHashEpoch = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTransactionsGroupMetadata = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupHashEpoch = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTransactionsGroupMetadata = fmt.Errorf("proto: unexpected end of group") + func NewHistoryRepository(arguments HistoryRepositoryArguments) (*historyProcessor, error) + func NewNilHistoryRepository() (*nilHistoryRepository, error) + type EpochByHash struct + Epoch uint32 + func (*EpochByHash) Descriptor() ([]byte, []int) + func (*EpochByHash) ProtoMessage() + func (m *EpochByHash) GetEpoch() uint32 + func (m *EpochByHash) Marshal() (dAtA []byte, err error) + func (m *EpochByHash) MarshalTo(dAtA []byte) (int, error) + func (m *EpochByHash) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EpochByHash) Reset() + func (m *EpochByHash) Size() (n int) + func (m *EpochByHash) Unmarshal(dAtA []byte) error + func (m *EpochByHash) XXX_DiscardUnknown() + func (m *EpochByHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EpochByHash) XXX_Merge(src proto.Message) + func (m *EpochByHash) XXX_Size() int + func (m *EpochByHash) XXX_Unmarshal(b []byte) error + func (this *EpochByHash) Equal(that interface{}) bool + func (this *EpochByHash) GoString() string + func (this *EpochByHash) String() string + type HistoryRepository interface + GetEpochForHash func(hash []byte) (uint32, error) + GetTransaction func(hash []byte) (*HistoryTransactionWithEpoch, error) + IsEnabled func() bool + IsInterfaceNil func() bool + PutTransactionsData func(htd *HistoryTransactionsData) error + type HistoryRepositoryArguments struct + HashEpochStorer storage.Storer + Hasher hashing.Hasher + HistoryStorer storage.Storer + Marshalizer marshal.Marshalizer + SelfShardID uint32 + type HistoryRepositoryFactory interface + Create func() (HistoryRepository, error) + IsInterfaceNil func() bool + type HistoryTransactionWithEpoch struct + Epoch uint32 + type HistoryTransactionsData struct + BodyHandler data.BodyHandler + HeaderHandler data.HeaderHandler + HeaderHash []byte + type TransactionsGroupMetadata struct + HeaderHash []byte + HeaderNonce uint64 + MbHash []byte + RcvShardID uint32 + Round uint64 + SndShardID uint32 + Status []byte + func (*TransactionsGroupMetadata) Descriptor() ([]byte, []int) + func (*TransactionsGroupMetadata) ProtoMessage() + func (m *TransactionsGroupMetadata) GetHeaderHash() []byte + func (m *TransactionsGroupMetadata) GetHeaderNonce() uint64 + func (m *TransactionsGroupMetadata) GetMbHash() []byte + func (m *TransactionsGroupMetadata) GetRcvShardID() uint32 + func (m *TransactionsGroupMetadata) GetRound() uint64 + func (m *TransactionsGroupMetadata) GetSndShardID() uint32 + func (m *TransactionsGroupMetadata) GetStatus() []byte + func (m *TransactionsGroupMetadata) Marshal() (dAtA []byte, err error) + func (m *TransactionsGroupMetadata) MarshalTo(dAtA []byte) (int, error) + func (m *TransactionsGroupMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TransactionsGroupMetadata) Reset() + func (m *TransactionsGroupMetadata) Size() (n int) + func (m *TransactionsGroupMetadata) Unmarshal(dAtA []byte) error + func (m *TransactionsGroupMetadata) XXX_DiscardUnknown() + func (m *TransactionsGroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TransactionsGroupMetadata) XXX_Merge(src proto.Message) + func (m *TransactionsGroupMetadata) XXX_Size() int + func (m *TransactionsGroupMetadata) XXX_Unmarshal(b []byte) error + func (this *TransactionsGroupMetadata) Equal(that interface{}) bool + func (this *TransactionsGroupMetadata) GoString() string + func (this *TransactionsGroupMetadata) String() string