operation

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 0 Imported by: 39

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

type QueuedOperation struct {
	OperationBuffer []byte
	UniqueSuffix    string
	Namespace       string
}

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL