mapclient

package
v0.0.0-...-b49bb9e Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapClient

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

A MapClient represents a client for a domain map.

func New

func New(uri string, client *http.Client, publicKey *ecdsa.PublicKey) *MapClient

New creates a new MapClient.

func (*MapClient) GetAndVerifySMH

func (mc *MapClient) GetAndVerifySMH() (*ds.GetSMHResponse, error)

GetAndVerifySMH executes `GET /dt/v1/get-smh` and verifies the SMH signature, if a public key is available.

func (*MapClient) GetConsistencyProof

func (mc *MapClient) GetConsistencyProof(req *ds.GetConsistencyProofRequest) (*ds.GetConsistencyProofResponse, error)

GetConsistencyProof executes `GET /dt/v1/get-consistency-proof`

func (*MapClient) GetDomainRootAndProof

func (mc *MapClient) GetDomainRootAndProof(req *ds.GetDomainRootAndProofRequest) (*ds.GetDomainRootAndProofResponse, error)

GetDomainRootAndProof executes `GET /dt/v1/get-domain-root-and-proof`

func (*MapClient) GetDomainTreeIndex

func (mc *MapClient) GetDomainTreeIndex(req *ds.GetDomainTreeIndexRequest) (*ds.GetDomainTreeIndexResponse, error)

GetDomainTreeIndex executes `GET /dt/v1/get-domain-tree-index`

func (*MapClient) GetEntries

func (mc *MapClient) GetEntries(req *ds.GetEntriesRequest) (*ds.GetEntriesResponse, error)

GetEntries executes `GET /dt/v1/get-entries`

func (*MapClient) GetEntryAndProof

func (mc *MapClient) GetEntryAndProof(req *ds.GetEntryAndProofRequest) (*ds.GetEntryAndProofResponse, error)

GetEntryAndProof executes `GET /dt/v1/get-entry-and-proof`

func (*MapClient) GetSourceConsistencyProof

GetSourceConsistencyProof executes `GET /dt/v1/get-source-consistency-proof`

func (*MapClient) GetSourceLogAndProof

func (mc *MapClient) GetSourceLogAndProof(req *ds.GetSourceLogAndProofRequest) (*ds.GetSourceLogAndProofResponse, error)

GetSourceLogAndProof executes `GET /dt/v1/get-source-log-and-proof`

func (*MapClient) GetSourceLogs

func (mc *MapClient) GetSourceLogs(req *ds.GetSourceLogsRequest) (*ds.GetSourceLogsResponse, error)

GetSourceLogs executes `GET /dt/v1/get-source-logs`

func (*MapClient) URI

func (mc *MapClient) URI() string

URI returns the uri of this map. This uri always has a trailing slash.

Jump to

Keyboard shortcuts

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