Documentation ¶
Index ¶
- Constants
- type Address
- func (a *Address) GetAddress() trinary.Hash
- func (a *Address) GetTransactionHash() trinary.Hash
- func (a *Address) ObjectStorageKey() []byte
- func (a *Address) ObjectStorageValue() (data []byte)
- func (a *Address) UnmarshalObjectStorageValue(_ []byte) (err error, consumedBytes int)
- func (a *Address) Update(_ objectstorage.StorableObject)
- type Approver
- func (a *Approver) GetApproverHash() trinary.Hash
- func (a *Approver) GetTransactionHash() trinary.Hash
- func (a *Approver) ObjectStorageKey() []byte
- func (a *Approver) ObjectStorageValue() (data []byte)
- func (a *Approver) UnmarshalObjectStorageValue(_ []byte) (err error, consumedBytes int)
- func (a *Approver) Update(_ objectstorage.StorableObject)
- type FirstSeenTx
- func (t *FirstSeenTx) GetFirstSeenLatestMilestoneIndex() milestone.Index
- func (t *FirstSeenTx) GetTransactionHash() trinary.Hash
- func (t *FirstSeenTx) ObjectStorageKey() []byte
- func (t *FirstSeenTx) ObjectStorageValue() (data []byte)
- func (t *FirstSeenTx) UnmarshalObjectStorageValue(_ []byte) (err error, consumedBytes int)
- func (t *FirstSeenTx) Update(_ objectstorage.StorableObject)
- type SolidEntryPoints
- func (s *SolidEntryPoints) Add(transactionHash trinary.Hash, milestoneIndex milestone.Index)
- func (s *SolidEntryPoints) Clear()
- func (s *SolidEntryPoints) Contains(transactionHash trinary.Hash) bool
- func (s *SolidEntryPoints) GetBytes() []byte
- func (s *SolidEntryPoints) Hashes() []trinary.Hash
- func (s *SolidEntryPoints) IsModified() bool
- func (s *SolidEntryPoints) SetModified(modified bool)
- type SpentAddress
- func (sa *SpentAddress) GetAddress() trinary.Hash
- func (sa *SpentAddress) ObjectStorageKey() []byte
- func (sa *SpentAddress) ObjectStorageValue() (data []byte)
- func (sa *SpentAddress) UnmarshalObjectStorageValue(_ []byte) (err error, consumedBytes int)
- func (sa *SpentAddress) Update(_ objectstorage.StorableObject)
- type Tag
- func (t *Tag) GetTag() trinary.Hash
- func (t *Tag) GetTransactionHash() trinary.Hash
- func (t *Tag) ObjectStorageKey() []byte
- func (t *Tag) ObjectStorageValue() (data []byte)
- func (t *Tag) UnmarshalObjectStorageValue(_ []byte) (err error, consumedBytes int)
- func (t *Tag) Update(_ objectstorage.StorableObject)
- type Transaction
- func (tx *Transaction) GetBranch() trinary.Hash
- func (tx *Transaction) GetHash() trinary.Hash
- func (tx *Transaction) GetTimestamp() int64
- func (tx *Transaction) GetTrunk() trinary.Hash
- func (tx *Transaction) IsHead() bool
- func (tx *Transaction) IsTail() bool
- func (tx *Transaction) ObjectStorageKey() []byte
- func (tx *Transaction) ObjectStorageValue() (data []byte)
- func (tx *Transaction) UnmarshalObjectStorageValue(data []byte) (err error, consumedBytes int)
- func (tx *Transaction) Update(_ objectstorage.StorableObject)
- type TransactionMetadata
- func (m *TransactionMetadata) GetConfirmed() (bool, milestone.Index)
- func (m *TransactionMetadata) GetMetadata() byte
- func (m *TransactionMetadata) GetSolidificationTimestamp() int32
- func (m *TransactionMetadata) IsSolid() bool
- func (m *TransactionMetadata) ObjectStorageKey() []byte
- func (m *TransactionMetadata) ObjectStorageValue() (data []byte)
- func (m *TransactionMetadata) Reset()
- func (m *TransactionMetadata) SetConfirmed(confirmed bool, confirmationIndex milestone.Index)
- func (m *TransactionMetadata) SetSolid(solid bool)
- func (m *TransactionMetadata) UnmarshalObjectStorageValue(data []byte) (err error, consumedBytes int)
- func (m *TransactionMetadata) Update(_ objectstorage.StorableObject)
Constants ¶
View Source
const ( TransactionMetadataSolid = 0 TransactionMetadataConfirmed = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { objectstorage.StorableObjectFlags Address []byte TxHash []byte }
func (*Address) GetAddress ¶
func (*Address) GetTransactionHash ¶
func (*Address) ObjectStorageKey ¶
func (*Address) ObjectStorageValue ¶
func (*Address) UnmarshalObjectStorageValue ¶
func (*Address) Update ¶
func (a *Address) Update(_ objectstorage.StorableObject)
type Approver ¶
type Approver struct { objectstorage.StorableObjectFlags TxHash []byte ApproverHash []byte }
func (*Approver) GetApproverHash ¶
func (*Approver) GetTransactionHash ¶
func (*Approver) ObjectStorageKey ¶
func (*Approver) ObjectStorageValue ¶
func (*Approver) UnmarshalObjectStorageValue ¶
func (*Approver) Update ¶
func (a *Approver) Update(_ objectstorage.StorableObject)
type FirstSeenTx ¶
type FirstSeenTx struct { objectstorage.StorableObjectFlags FirstSeenLatestMilestoneIndex milestone.Index TxHash []byte }
func (*FirstSeenTx) GetFirstSeenLatestMilestoneIndex ¶
func (t *FirstSeenTx) GetFirstSeenLatestMilestoneIndex() milestone.Index
func (*FirstSeenTx) GetTransactionHash ¶
func (t *FirstSeenTx) GetTransactionHash() trinary.Hash
func (*FirstSeenTx) ObjectStorageKey ¶
func (t *FirstSeenTx) ObjectStorageKey() []byte
func (*FirstSeenTx) ObjectStorageValue ¶
func (t *FirstSeenTx) ObjectStorageValue() (data []byte)
func (*FirstSeenTx) UnmarshalObjectStorageValue ¶
func (t *FirstSeenTx) UnmarshalObjectStorageValue(_ []byte) (err error, consumedBytes int)
func (*FirstSeenTx) Update ¶
func (t *FirstSeenTx) Update(_ objectstorage.StorableObject)
type SolidEntryPoints ¶
type SolidEntryPoints struct {
// contains filtered or unexported fields
}
func NewSolidEntryPoints ¶
func NewSolidEntryPoints() *SolidEntryPoints
func SolidEntryPointsFromBytes ¶
func SolidEntryPointsFromBytes(solidEntryPointsBytes []byte) (*SolidEntryPoints, error)
func (*SolidEntryPoints) Add ¶
func (s *SolidEntryPoints) Add(transactionHash trinary.Hash, milestoneIndex milestone.Index)
func (*SolidEntryPoints) Clear ¶
func (s *SolidEntryPoints) Clear()
func (*SolidEntryPoints) Contains ¶
func (s *SolidEntryPoints) Contains(transactionHash trinary.Hash) bool
func (*SolidEntryPoints) GetBytes ¶
func (s *SolidEntryPoints) GetBytes() []byte
func (*SolidEntryPoints) Hashes ¶
func (s *SolidEntryPoints) Hashes() []trinary.Hash
func (*SolidEntryPoints) IsModified ¶
func (s *SolidEntryPoints) IsModified() bool
func (*SolidEntryPoints) SetModified ¶
func (s *SolidEntryPoints) SetModified(modified bool)
type SpentAddress ¶
type SpentAddress struct { objectstorage.StorableObjectFlags Address []byte }
func (*SpentAddress) GetAddress ¶
func (sa *SpentAddress) GetAddress() trinary.Hash
func (*SpentAddress) ObjectStorageKey ¶
func (sa *SpentAddress) ObjectStorageKey() []byte
func (*SpentAddress) ObjectStorageValue ¶
func (sa *SpentAddress) ObjectStorageValue() (data []byte)
func (*SpentAddress) UnmarshalObjectStorageValue ¶
func (sa *SpentAddress) UnmarshalObjectStorageValue(_ []byte) (err error, consumedBytes int)
func (*SpentAddress) Update ¶
func (sa *SpentAddress) Update(_ objectstorage.StorableObject)
type Tag ¶
type Tag struct { objectstorage.StorableObjectFlags Tag []byte TxHash []byte }
func (*Tag) GetTransactionHash ¶
func (*Tag) ObjectStorageKey ¶
func (*Tag) ObjectStorageValue ¶
func (*Tag) UnmarshalObjectStorageValue ¶
func (*Tag) Update ¶
func (t *Tag) Update(_ objectstorage.StorableObject)
type Transaction ¶
type Transaction struct { objectstorage.StorableObjectFlags TxHash []byte // Decompressed iota.go Transaction containing Hash Tx *transaction.Transaction // Compressed bytes as received via gossip RawBytes []byte // contains filtered or unexported fields }
func NewTransaction ¶
func NewTransaction(transaction *transaction.Transaction, transactionBytes []byte) *Transaction
func (*Transaction) GetBranch ¶
func (tx *Transaction) GetBranch() trinary.Hash
func (*Transaction) GetHash ¶
func (tx *Transaction) GetHash() trinary.Hash
func (*Transaction) GetTimestamp ¶
func (tx *Transaction) GetTimestamp() int64
func (*Transaction) GetTrunk ¶
func (tx *Transaction) GetTrunk() trinary.Hash
func (*Transaction) IsHead ¶
func (tx *Transaction) IsHead() bool
func (*Transaction) IsTail ¶
func (tx *Transaction) IsTail() bool
func (*Transaction) ObjectStorageKey ¶
func (tx *Transaction) ObjectStorageKey() []byte
func (*Transaction) ObjectStorageValue ¶
func (tx *Transaction) ObjectStorageValue() (data []byte)
func (*Transaction) UnmarshalObjectStorageValue ¶
func (tx *Transaction) UnmarshalObjectStorageValue(data []byte) (err error, consumedBytes int)
func (*Transaction) Update ¶
func (tx *Transaction) Update(_ objectstorage.StorableObject)
type TransactionMetadata ¶
type TransactionMetadata struct { objectstorage.StorableObjectFlags syncutils.RWMutex TxHash []byte // contains filtered or unexported fields }
func (*TransactionMetadata) GetConfirmed ¶
func (m *TransactionMetadata) GetConfirmed() (bool, milestone.Index)
func (*TransactionMetadata) GetMetadata ¶
func (m *TransactionMetadata) GetMetadata() byte
func (*TransactionMetadata) GetSolidificationTimestamp ¶
func (m *TransactionMetadata) GetSolidificationTimestamp() int32
func (*TransactionMetadata) IsSolid ¶
func (m *TransactionMetadata) IsSolid() bool
func (*TransactionMetadata) ObjectStorageKey ¶
func (m *TransactionMetadata) ObjectStorageKey() []byte
func (*TransactionMetadata) ObjectStorageValue ¶
func (m *TransactionMetadata) ObjectStorageValue() (data []byte)
func (*TransactionMetadata) Reset ¶
func (m *TransactionMetadata) Reset()
func (*TransactionMetadata) SetConfirmed ¶
func (m *TransactionMetadata) SetConfirmed(confirmed bool, confirmationIndex milestone.Index)
func (*TransactionMetadata) SetSolid ¶
func (m *TransactionMetadata) SetSolid(solid bool)
func (*TransactionMetadata) UnmarshalObjectStorageValue ¶
func (m *TransactionMetadata) UnmarshalObjectStorageValue(data []byte) (err error, consumedBytes int)
func (*TransactionMetadata) Update ¶
func (m *TransactionMetadata) Update(_ objectstorage.StorableObject)
Click to show internal directories.
Click to hide internal directories.