Documentation ¶
Index ¶
- Constants
- Variables
- type Address
- func (a *Address) GetAddress() Hash
- func (a *Address) GetTxHash() Hash
- func (a *Address) IsValue() bool
- func (a *Address) ObjectStorageKey() []byte
- func (a *Address) ObjectStorageValue() (_ []byte)
- func (a *Address) UnmarshalObjectStorageValue(_ []byte) (consumedBytes int, err error)
- func (a *Address) Update(_ objectstorage.StorableObject)
- type Approver
- func (a *Approver) GetApproverHash() Hash
- func (a *Approver) GetTxHash() Hash
- func (a *Approver) ObjectStorageKey() []byte
- func (a *Approver) ObjectStorageValue() (_ []byte)
- func (a *Approver) UnmarshalObjectStorageValue(_ []byte) (consumedBytes int, err error)
- func (a *Approver) Update(_ objectstorage.StorableObject)
- type Hash
- type Hashes
- type SolidEntryPoints
- func (s *SolidEntryPoints) Add(txHash Hash, milestoneIndex milestone.Index)
- func (s *SolidEntryPoints) Clear()
- func (s *SolidEntryPoints) Contains(txHash Hash) bool
- func (s *SolidEntryPoints) GetBytes() []byte
- func (s *SolidEntryPoints) Hashes() Hashes
- func (s *SolidEntryPoints) Index(txHash Hash) (milestone.Index, bool)
- func (s *SolidEntryPoints) IsModified() bool
- func (s *SolidEntryPoints) SetModified(modified bool)
- type SpentAddress
- func (sa *SpentAddress) GetAddress() Hash
- func (sa *SpentAddress) ObjectStorageKey() []byte
- func (sa *SpentAddress) ObjectStorageValue() (_ []byte)
- func (sa *SpentAddress) UnmarshalObjectStorageValue(_ []byte) (consumedBytes int, err error)
- func (sa *SpentAddress) Update(_ objectstorage.StorableObject)
- type Tag
- type Transaction
- func (tx *Transaction) GetAddress() Hash
- func (tx *Transaction) GetBranchHash() Hash
- func (tx *Transaction) GetBundleHash() Hash
- func (tx *Transaction) GetTag() Hash
- func (tx *Transaction) GetTimestamp() int64
- func (tx *Transaction) GetTrunkHash() Hash
- func (tx *Transaction) GetTxHash() Hash
- func (tx *Transaction) IsHead() bool
- func (tx *Transaction) IsTail() bool
- func (tx *Transaction) IsValue() bool
- func (tx *Transaction) ObjectStorageKey() []byte
- func (tx *Transaction) ObjectStorageValue() (data []byte)
- func (tx *Transaction) UnmarshalObjectStorageValue(data []byte) (consumedBytes int, err error)
- 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) GetTxHash() Hash
- func (m *TransactionMetadata) IsConfirmed() bool
- 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) (consumedBytes int, err error)
- func (m *TransactionMetadata) Update(_ objectstorage.StorableObject)
- type UnconfirmedTx
- func (t *UnconfirmedTx) GetLatestMilestoneIndex() milestone.Index
- func (t *UnconfirmedTx) GetTxHash() Hash
- func (t *UnconfirmedTx) ObjectStorageKey() []byte
- func (t *UnconfirmedTx) ObjectStorageValue() (_ []byte)
- func (t *UnconfirmedTx) UnmarshalObjectStorageValue(_ []byte) (consumedBytes int, err error)
- func (t *UnconfirmedTx) Update(_ objectstorage.StorableObject)
Constants ¶
View Source
const ( TransactionMetadataSolid = 0 TransactionMetadataConfirmed = 1 )
View Source
const (
AddressTxIsValue = 1
)
Variables ¶
View Source
var ( // NullHashBytes is the binary hash of the genesis transaction. NullHashBytes = make(Hash, 49) )
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { objectstorage.StorableObjectFlags // contains filtered or unexported fields }
func (*Address) GetAddress ¶
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 // contains filtered or unexported fields }
func NewApprover ¶
func (*Approver) GetApproverHash ¶
func (*Approver) ObjectStorageKey ¶
func (*Approver) ObjectStorageValue ¶
func (*Approver) UnmarshalObjectStorageValue ¶
func (*Approver) Update ¶
func (a *Approver) 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(txHash Hash, milestoneIndex milestone.Index)
func (*SolidEntryPoints) Clear ¶
func (s *SolidEntryPoints) Clear()
func (*SolidEntryPoints) Contains ¶
func (s *SolidEntryPoints) Contains(txHash Hash) bool
func (*SolidEntryPoints) GetBytes ¶
func (s *SolidEntryPoints) GetBytes() []byte
func (*SolidEntryPoints) Hashes ¶
func (s *SolidEntryPoints) Hashes() Hashes
func (*SolidEntryPoints) Index ¶ added in v0.4.1
func (s *SolidEntryPoints) Index(txHash Hash) (milestone.Index, bool)
func (*SolidEntryPoints) IsModified ¶
func (s *SolidEntryPoints) IsModified() bool
func (*SolidEntryPoints) SetModified ¶
func (s *SolidEntryPoints) SetModified(modified bool)
type SpentAddress ¶
type SpentAddress struct { objectstorage.StorableObjectFlags // contains filtered or unexported fields }
func NewSpentAddress ¶
func NewSpentAddress(address Hash) *SpentAddress
func (*SpentAddress) GetAddress ¶
func (sa *SpentAddress) GetAddress() Hash
func (*SpentAddress) ObjectStorageKey ¶
func (sa *SpentAddress) ObjectStorageKey() []byte
func (*SpentAddress) ObjectStorageValue ¶
func (sa *SpentAddress) ObjectStorageValue() (_ []byte)
func (*SpentAddress) UnmarshalObjectStorageValue ¶
func (sa *SpentAddress) UnmarshalObjectStorageValue(_ []byte) (consumedBytes int, err error)
func (*SpentAddress) Update ¶
func (sa *SpentAddress) Update(_ objectstorage.StorableObject)
type Tag ¶
type Tag struct { objectstorage.StorableObjectFlags // contains filtered or unexported fields }
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 // 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(txHash Hash) *Transaction
func NewTransactionFromTx ¶
func NewTransactionFromTx(transaction *transaction.Transaction, transactionBytes []byte) *Transaction
func (*Transaction) GetAddress ¶
func (tx *Transaction) GetAddress() Hash
func (*Transaction) GetBranchHash ¶
func (tx *Transaction) GetBranchHash() Hash
func (*Transaction) GetBundleHash ¶
func (tx *Transaction) GetBundleHash() Hash
func (*Transaction) GetTag ¶
func (tx *Transaction) GetTag() Hash
func (*Transaction) GetTimestamp ¶
func (tx *Transaction) GetTimestamp() int64
func (*Transaction) GetTrunkHash ¶
func (tx *Transaction) GetTrunkHash() Hash
func (*Transaction) GetTxHash ¶
func (tx *Transaction) GetTxHash() Hash
func (*Transaction) IsHead ¶
func (tx *Transaction) IsHead() bool
func (*Transaction) IsTail ¶
func (tx *Transaction) IsTail() bool
func (*Transaction) IsValue ¶
func (tx *Transaction) IsValue() 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) (consumedBytes int, err error)
func (*Transaction) Update ¶
func (tx *Transaction) Update(_ objectstorage.StorableObject)
type TransactionMetadata ¶
type TransactionMetadata struct { objectstorage.StorableObjectFlags syncutils.RWMutex // contains filtered or unexported fields }
func NewTransactionMetadata ¶
func NewTransactionMetadata(txHash Hash) *TransactionMetadata
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) GetTxHash ¶
func (m *TransactionMetadata) GetTxHash() Hash
func (*TransactionMetadata) IsConfirmed ¶
func (m *TransactionMetadata) IsConfirmed() bool
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) (consumedBytes int, err error)
func (*TransactionMetadata) Update ¶
func (m *TransactionMetadata) Update(_ objectstorage.StorableObject)
type UnconfirmedTx ¶
type UnconfirmedTx struct { objectstorage.StorableObjectFlags // contains filtered or unexported fields }
func NewUnconfirmedTx ¶
func NewUnconfirmedTx(msIndex milestone.Index, txHash Hash) *UnconfirmedTx
func (*UnconfirmedTx) GetLatestMilestoneIndex ¶
func (t *UnconfirmedTx) GetLatestMilestoneIndex() milestone.Index
func (*UnconfirmedTx) GetTxHash ¶
func (t *UnconfirmedTx) GetTxHash() Hash
func (*UnconfirmedTx) ObjectStorageKey ¶
func (t *UnconfirmedTx) ObjectStorageKey() []byte
func (*UnconfirmedTx) ObjectStorageValue ¶
func (t *UnconfirmedTx) ObjectStorageValue() (_ []byte)
func (*UnconfirmedTx) UnmarshalObjectStorageValue ¶
func (t *UnconfirmedTx) UnmarshalObjectStorageValue(_ []byte) (consumedBytes int, err error)
func (*UnconfirmedTx) Update ¶
func (t *UnconfirmedTx) Update(_ objectstorage.StorableObject)
Click to show internal directories.
Click to hide internal directories.