batch

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	//Operation type
	Type OperationType `json:"type"`
	//ID is full ID for this document - includes namespace + unique suffix
	ID string `json:"id"`
	//SigningKeyID is the id of the key that was used to sign this operation
	SigningKeyID string `json:"signingKeyID"`
	//EncodedPayload  is the encoded operation payload
	EncodedPayload string `json:"encodedPayload"`
	//Signature is the signature of this operation
	Signature string `json:"signature"`
	//PreviousOperationHash is the hash of the previous operation - undefined for create operation
	PreviousOperationHash string `json:"previousOperationHash"`
	//The unique suffix - encoded hash of the original create document
	UniqueSuffix string `json:"uniqueSuffix"`
	//The number incremented from the last change version number. 1 if first change.
	OperationNumber uint `json:"operationNumber"`
	//An RFC 6902 JSON patch to the current Document
	Patch jsonpatch.Patch `json:"patch"`
	//HashAlgorithmInMultiHashCode
	HashAlgorithmInMultiHashCode uint `json:"hashAlgorithmInMultiHashCode"`
	//The logical blockchain time that this operation was anchored on the blockchain
	TransactionTime uint64 `json:"transactionTime"`
	//The transaction number of the transaction this operation was batched within
	TransactionNumber uint64 `json:"transactionNumber"`
	//The index this operation was assigned to in the batch
	OperationIndex uint `json:"operationIndex"`
}

Operation defines an operation

type OperationType

type OperationType string

OperationType defines valid values for operation type

const (

	// OperationTypeCreate captures "create" operation type
	OperationTypeCreate OperationType = "create"

	// OperationTypeUpdate captures "update" operation type
	OperationTypeUpdate OperationType = "update"

	// OperationTypeDelete captures "delete" operation type
	OperationTypeDelete OperationType = "delete"

	// OperationTypeRecover captures "recover" operation type
	OperationTypeRecover OperationType = "recover"
)

Jump to

Keyboard shortcuts

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