models

package
v0.1.0 Latest Latest
Warning

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

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

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.

func (Endpoint) CacheLifetime

func (c Endpoint) CacheLifetime() (time.Duration, error)

CacheLifetime returns the cache lifetime of the endpoint config file before it needs to be checked for an update.

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.

Jump to

Keyboard shortcuts

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