Documentation
¶
Index ¶
- Constants
- type Events
- type Tangle
- func (tangle *Tangle) AttachTransaction(transaction *transaction.Transaction)
- func (tangle *Tangle) DeleteTransaction(transactionId transaction.Id)
- func (tangle *Tangle) GetApprovers(transactionId transaction.Id) approver.CachedApprovers
- func (tangle *Tangle) GetStorageId() []byte
- func (tangle *Tangle) GetTransaction(transactionId transaction.Id) *transaction.CachedTransaction
- func (tangle *Tangle) GetTransactionMetadata(transactionId transaction.Id) *transactionmetadata.CachedTransactionMetadata
- func (tangle *Tangle) Prune() error
- func (tangle *Tangle) Shutdown() *Tangle
Constants ¶
View Source
const ( MAX_MISSING_TIME_BEFORE_CLEANUP = 30 * time.Second MISSING_CHECK_INTERVAL = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tangle ¶
type Tangle struct {
Events Events
// contains filtered or unexported fields
}
func (*Tangle) AttachTransaction ¶
func (tangle *Tangle) AttachTransaction(transaction *transaction.Transaction)
Attaches a new transaction to the tangle.
func (*Tangle) DeleteTransaction ¶
func (tangle *Tangle) DeleteTransaction(transactionId transaction.Id)
Deletes a transaction from the tangle (i.e. for local snapshots)
func (*Tangle) GetApprovers ¶
func (tangle *Tangle) GetApprovers(transactionId transaction.Id) approver.CachedApprovers
Retrieves the approvers of a transaction from the tangle.
func (*Tangle) GetStorageId ¶
Returns the storage id of this tangle (can be used to create ontologies that follow the storage of the main tangle).
func (*Tangle) GetTransaction ¶
func (tangle *Tangle) GetTransaction(transactionId transaction.Id) *transaction.CachedTransaction
Retrieves a transaction from the tangle.
func (*Tangle) GetTransactionMetadata ¶
func (tangle *Tangle) GetTransactionMetadata(transactionId transaction.Id) *transactionmetadata.CachedTransactionMetadata
Retrieves the metadata of a transaction from the tangle.
Click to show internal directories.
Click to hide internal directories.