Documentation ¶
Index ¶
- Constants
- func NewDatabaseObserver() database.Observer
- type ExpiredTransaction
- func (m *ExpiredTransaction) CopyAsInterface() any
- func (m *ExpiredTransaction) Hash() [32]byte
- func (m *ExpiredTransaction) ID() *url.TxID
- func (ExpiredTransaction) MarshalBinary() (data []byte, err error)
- func (m *ExpiredTransaction) Type() messaging.MessageType
- func (ExpiredTransaction) UnmarshalBinary(data []byte) error
- func (ExpiredTransaction) UnmarshalBinaryFrom(io.Reader) error
- func (ExpiredTransaction) UnmarshalFieldsFrom(*encoding.Reader) error
- type MessageIsReady
- func (m *MessageIsReady) CopyAsInterface() any
- func (MessageIsReady) Hash() [32]byte
- func (m *MessageIsReady) ID() *url.TxID
- func (MessageIsReady) MarshalBinary() (data []byte, err error)
- func (m *MessageIsReady) Type() messaging.MessageType
- func (MessageIsReady) UnmarshalBinary(data []byte) error
- func (MessageIsReady) UnmarshalBinaryFrom(io.Reader) error
- func (MessageIsReady) UnmarshalFieldsFrom(*encoding.Reader) error
- type NetworkMaintenanceOp
- func (m *NetworkMaintenanceOp) CopyAsInterface() any
- func (m *NetworkMaintenanceOp) Hash() [32]byte
- func (m *NetworkMaintenanceOp) ID() *url.TxID
- func (NetworkMaintenanceOp) MarshalBinary() (data []byte, err error)
- func (m *NetworkMaintenanceOp) Type() messaging.MessageType
- func (NetworkMaintenanceOp) UnmarshalBinary(data []byte) error
- func (NetworkMaintenanceOp) UnmarshalBinaryFrom(io.Reader) error
- func (NetworkMaintenanceOp) UnmarshalFieldsFrom(*encoding.Reader) error
- type NetworkUpdate
- func (m *NetworkUpdate) CopyAsInterface() any
- func (NetworkUpdate) Hash() [32]byte
- func (m *NetworkUpdate) ID() *url.TxID
- func (NetworkUpdate) MarshalBinary() (data []byte, err error)
- func (m *NetworkUpdate) Type() messaging.MessageType
- func (NetworkUpdate) UnmarshalBinary(data []byte) error
- func (NetworkUpdate) UnmarshalBinaryFrom(io.Reader) error
- func (NetworkUpdate) UnmarshalFieldsFrom(*encoding.Reader) error
- type PseudoSynthetic
- func (m *PseudoSynthetic) CopyAsInterface() any
- func (PseudoSynthetic) Hash() [32]byte
- func (m *PseudoSynthetic) ID() *url.TxID
- func (PseudoSynthetic) MarshalBinary() (data []byte, err error)
- func (m *PseudoSynthetic) Type() messaging.MessageType
- func (PseudoSynthetic) UnmarshalBinary(data []byte) error
- func (PseudoSynthetic) UnmarshalBinaryFrom(io.Reader) error
- func (PseudoSynthetic) UnmarshalFieldsFrom(*encoding.Reader) error
- func (m *PseudoSynthetic) Unwrap() messaging.Message
Constants ¶
const ( MessageTypeInternal messaging.MessageType = 0xFFFF_0000 + iota // MessageTypeNetworkUpdate is an update to a network account that has been // pushed from the DN via an anchor. MessageTypeNetworkUpdate // MessageTypeMessageIsReady indicates that a message is ready to be // processed. MessageTypeMessageIsReady // MessageTypePseudoSynthetic wraps produced messages between accounts in // the same domain that would otherwise be synthetic. MessageTypePseudoSynthetic // MessageTypeExpiredTransaction expires a pending transaction. MessageTypeExpiredTransaction // MessageTypeNetworkMaintenanceOp executes a network maintenance operation. MessageTypeNetworkMaintenanceOp )
Variables ¶
This section is empty.
Functions ¶
func NewDatabaseObserver ¶
Types ¶
type ExpiredTransaction ¶ added in v1.2.0
ExpiredTransaction expires a pending transaction.
func (*ExpiredTransaction) CopyAsInterface ¶ added in v1.2.0
func (m *ExpiredTransaction) CopyAsInterface() any
func (*ExpiredTransaction) Hash ¶ added in v1.2.0
func (m *ExpiredTransaction) Hash() [32]byte
func (*ExpiredTransaction) ID ¶ added in v1.2.0
func (m *ExpiredTransaction) ID() *url.TxID
func (ExpiredTransaction) MarshalBinary ¶ added in v1.2.0
MarshalBinary returns an error.
func (*ExpiredTransaction) Type ¶ added in v1.2.0
func (m *ExpiredTransaction) Type() messaging.MessageType
func (ExpiredTransaction) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary returns an error.
func (ExpiredTransaction) UnmarshalBinaryFrom ¶ added in v1.2.0
UnmarshalBinaryFrom returns an error.
func (ExpiredTransaction) UnmarshalFieldsFrom ¶ added in v1.2.0
UnmarshalFieldsFrom returns an error.
type MessageIsReady ¶
MessageIsReady indicates that the transaction is ready to be executed.
func (*MessageIsReady) CopyAsInterface ¶
func (m *MessageIsReady) CopyAsInterface() any
func (*MessageIsReady) ID ¶
func (m *MessageIsReady) ID() *url.TxID
func (MessageIsReady) MarshalBinary ¶
MarshalBinary returns an error.
func (*MessageIsReady) Type ¶
func (m *MessageIsReady) Type() messaging.MessageType
func (MessageIsReady) UnmarshalBinary ¶
UnmarshalBinary returns an error.
func (MessageIsReady) UnmarshalBinaryFrom ¶
UnmarshalBinaryFrom returns an error.
func (MessageIsReady) UnmarshalFieldsFrom ¶
UnmarshalFieldsFrom returns an error.
type NetworkMaintenanceOp ¶ added in v1.3.0
type NetworkMaintenanceOp struct { Cause *url.TxID Operation protocol.NetworkMaintenanceOperation // contains filtered or unexported fields }
NetworkMaintenanceOp expires a network maintenance operation.
func (*NetworkMaintenanceOp) CopyAsInterface ¶ added in v1.3.0
func (m *NetworkMaintenanceOp) CopyAsInterface() any
func (*NetworkMaintenanceOp) Hash ¶ added in v1.3.0
func (m *NetworkMaintenanceOp) Hash() [32]byte
func (*NetworkMaintenanceOp) ID ¶ added in v1.3.0
func (m *NetworkMaintenanceOp) ID() *url.TxID
func (NetworkMaintenanceOp) MarshalBinary ¶ added in v1.3.0
MarshalBinary returns an error.
func (*NetworkMaintenanceOp) Type ¶ added in v1.3.0
func (m *NetworkMaintenanceOp) Type() messaging.MessageType
func (NetworkMaintenanceOp) UnmarshalBinary ¶ added in v1.3.0
UnmarshalBinary returns an error.
func (NetworkMaintenanceOp) UnmarshalBinaryFrom ¶ added in v1.3.0
UnmarshalBinaryFrom returns an error.
func (NetworkMaintenanceOp) UnmarshalFieldsFrom ¶ added in v1.3.0
UnmarshalFieldsFrom returns an error.
type NetworkUpdate ¶
type NetworkUpdate struct { Cause [32]byte Account *url.URL Body protocol.TransactionBody // contains filtered or unexported fields }
NetworkUpdate is an update to a network account that has been pushed from the DN via an anchor.
func (*NetworkUpdate) CopyAsInterface ¶
func (m *NetworkUpdate) CopyAsInterface() any
func (*NetworkUpdate) ID ¶
func (m *NetworkUpdate) ID() *url.TxID
func (NetworkUpdate) MarshalBinary ¶
MarshalBinary returns an error.
func (*NetworkUpdate) Type ¶
func (m *NetworkUpdate) Type() messaging.MessageType
func (NetworkUpdate) UnmarshalBinary ¶
UnmarshalBinary returns an error.
func (NetworkUpdate) UnmarshalBinaryFrom ¶
UnmarshalBinaryFrom returns an error.
func (NetworkUpdate) UnmarshalFieldsFrom ¶
UnmarshalFieldsFrom returns an error.
type PseudoSynthetic ¶
PseudoSynthetic wraps produced messages between accounts in the same domain that would otherwise be synthetic.
func (*PseudoSynthetic) CopyAsInterface ¶
func (m *PseudoSynthetic) CopyAsInterface() any
func (*PseudoSynthetic) ID ¶
func (m *PseudoSynthetic) ID() *url.TxID
func (PseudoSynthetic) MarshalBinary ¶
MarshalBinary returns an error.
func (*PseudoSynthetic) Type ¶
func (m *PseudoSynthetic) Type() messaging.MessageType
func (PseudoSynthetic) UnmarshalBinary ¶
UnmarshalBinary returns an error.
func (PseudoSynthetic) UnmarshalBinaryFrom ¶
UnmarshalBinaryFrom returns an error.
func (PseudoSynthetic) UnmarshalFieldsFrom ¶
UnmarshalFieldsFrom returns an error.
func (*PseudoSynthetic) Unwrap ¶
func (m *PseudoSynthetic) Unwrap() messaging.Message