Documentation
¶
Overview ¶
Package models implement models
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
ResolutionEndpoints []string
OperationEndpoints []string
MinResolvers int
MaxAge uint `json:"-"`
}
Endpoint include info about endpoint.
type SidetreeConfig ¶
type SidetreeConfig struct {
MultiHashAlgorithm uint `json:"multihashAlgorithm"`
MaxAge uint `json:"-"`
}
SidetreeConfig sidetree configuration.
func (SidetreeConfig) CacheLifetime ¶
func (c SidetreeConfig) CacheLifetime() (time.Duration, error)
CacheLifetime returns the cache lifetime of the sidetree config file before it needs to be checked for an update.
Click to show internal directories.
Click to hide internal directories.