proofmonitoring

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Next

func Next(records interface{ Next() (bool, error) }) bool

Next is helper function that simplifies the usage of the iterator.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for the monitoring.

func New

func New(provider storage.Provider, documentLoader ld.DocumentLoader, wfClient webfingerClient,
	httpClient httpClient, taskMgr taskManager, interval time.Duration,
	requestTokens map[string]string) (*Client, error)

New returns monitoring client.

func (*Client) Watch

func (c *Client) Watch(vc *verifiable.Credential, endTime time.Time, domain string, created time.Time) error

Watch starts monitoring.

type Proof

type Proof struct {
	Data struct {
		Domain  string    `json:"domain"`
		Created time.Time `json:"created"`
	} `json:"proof"`
}

Proof represents response.

Jump to

Keyboard shortcuts

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