Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchoredOperation ¶
type AnchoredOperation struct { // Type defines operation type. Type Type `json:"type"` // UniqueSuffix defines document unique suffix. UniqueSuffix string `json:"uniqueSuffix"` // OperationBuffer is the original operation request OperationBuffer []byte `json:"operationBuffer"` // TransactionTime is the logical blockchain time (block number) that this operation was anchored on the blockchain. TransactionTime uint64 `json:"transactionTime"` // TransactionNumber is the transaction number of the transaction this operation was batched within. TransactionNumber uint64 `json:"transactionNumber"` // ProtocolGenesisTime is the genesis time of the protocol that was used for this operation. ProtocolGenesisTime uint64 `json:"protocolGenesisTime"` }
AnchoredOperation defines an anchored operation (stored in document operation store).
type Operation ¶
type Operation struct { // Type defines operation type. Type Type // UniqueSuffix defines document unique suffix. UniqueSuffix string // ID defines ID ID string // OperationBuffer is the original operation request OperationBuffer []byte }
Operation holds minimum information required for parsing/validating client request.
type QueuedOperation ¶
QueuedOperation stores minimum required operation info for operations queue.
type QueuedOperationAtTime ¶
type QueuedOperationAtTime struct { QueuedOperation ProtocolGenesisTime uint64 }
QueuedOperationAtTime contains queued operation info with protocol genesis time.
type Type ¶
type Type string
Type defines valid values for operation type.
const ( // TypeCreate captures "create" operation type. TypeCreate Type = "create" // TypeUpdate captures "update" operation type. TypeUpdate Type = "update" // TypeDeactivate captures "deactivate" operation type. TypeDeactivate Type = "deactivate" // TypeRecover captures "recover" operation type. TypeRecover Type = "recover" )
Click to show internal directories.
Click to hide internal directories.