Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *UpdateHandler)
Option is an option for update handler.
func WithCreateDocumentStore ¶
WithCreateDocumentStore stores 'create' document response into create document store.
type UpdateHandler ¶
type UpdateHandler struct {
// contains filtered or unexported fields
}
UpdateHandler handles the creation and update of documents.
func New ¶
func New(processor dochandler.Processor, opts ...Option) *UpdateHandler
New creates a new document update handler.
func (*UpdateHandler) Namespace ¶
func (r *UpdateHandler) Namespace() string
Namespace returns the namespace of the document handler.
func (*UpdateHandler) ProcessOperation ¶
func (r *UpdateHandler) ProcessOperation(operationBuffer []byte, protocolGenesisTime uint64) (*document.ResolutionResult, error)
ProcessOperation validates operation and adds it to the batch.
Click to show internal directories.
Click to hide internal directories.