monitoring

package
v0.1.3 Latest Latest
Warning

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

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

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, opts ...Opt) (*Client, error)

New returns monitoring client.

func (*Client) Close

func (c *Client) Close()

Close stops ticker.

func (*Client) Watch

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

Watch starts monitoring.

type Opt

type Opt func(*Client)

Opt represents client option func.

func WithHTTPClient

func WithHTTPClient(client httpClient) Opt

WithHTTPClient allows providing HTTP client.

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