updatehandler

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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.

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, metrics metricsProvider, 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, protocolVersion uint64) (*document.ResolutionResult, error)

ProcessOperation validates operation and adds it to the batch.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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