Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor interface { Namespace() string ProcessOperation(operation []byte, protocolVersion uint64) (*document.ResolutionResult, error) }
Processor processes document operations.
type ResolveHandler ¶
type ResolveHandler struct {
// contains filtered or unexported fields
}
ResolveHandler resolves generic documents.
func NewResolveHandler ¶
func NewResolveHandler(resolver Resolver, metrics metricsResolveProvider) *ResolveHandler
NewResolveHandler returns a new document resolve handler.
func (*ResolveHandler) Resolve ¶
func (o *ResolveHandler) Resolve(rw http.ResponseWriter, req *http.Request)
Resolve resolves a document.
type Resolver ¶
type Resolver interface {
ResolveDocument(idOrDocument string, opts ...document.ResolutionOption) (*document.ResolutionResult, error)
}
Resolver resolves documents.
type UpdateHandler ¶
type UpdateHandler struct {
// contains filtered or unexported fields
}
UpdateHandler handles the creation and update of documents.
func NewUpdateHandler ¶
func NewUpdateHandler(processor Processor, pc protocol.Client, metrics metricsProvider) *UpdateHandler
NewUpdateHandler returns a new document update handler.
func (*UpdateHandler) Update ¶
func (h *UpdateHandler) Update(rw http.ResponseWriter, req *http.Request)
Update creates or updates a document.
Click to show internal directories.
Click to hide internal directories.