sidetreehandler

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Authorization authhandler.Config

	// Version contains the version of the Sidetree endpoint
	Version string
	// DocType specifies the document type (DID or File index)
	DocType common.DocumentType
	// Namespace is the namespace prefix used in the ID of the document
	Namespace string
	// Aliases is the namespace aliases that can be used in the ID of the document
	Aliases []string
	// BasePath is the base context path of the REST endpoint
	BasePath string
	// DocumentCacheSize is the maximum number of documents to hold in the cache. If 0 then the default cache size is used.
	DocumentCacheSize uint
	// DocumentExpiry returns the expiration time of a cached document. If zero then the document never expires.
	DocumentExpiry time.Duration
}

Config holds Sidetree endpoint handler config

type Version

type Version struct {
	Config
	// contains filtered or unexported fields
}

Version retrieves the current version and version parameters or the version and version parameters for a given transaction time

func NewVersionHandler

func NewVersionHandler(channelID string, cfg Config, pc protocol.Client) *Version

NewVersionHandler returns a new Version handler

func (*Version) Handler added in v0.1.5

func (h *Version) Handler() common.HTTPRequestHandler

Handler returns the request handler

func (*Version) Method added in v0.1.5

func (h *Version) Method() string

Method returns the HTTP method

func (*Version) Path added in v0.1.5

func (h *Version) Path() string

Path returns the context path

Jump to

Keyboard shortcuts

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