Documentation ¶
Index ¶
- type MapClient
- func (mc *MapClient) GetAndVerifySMH() (*ds.GetSMHResponse, error)
- func (mc *MapClient) GetConsistencyProof(req *ds.GetConsistencyProofRequest) (*ds.GetConsistencyProofResponse, error)
- func (mc *MapClient) GetDomainRootAndProof(req *ds.GetDomainRootAndProofRequest) (*ds.GetDomainRootAndProofResponse, error)
- func (mc *MapClient) GetDomainTreeIndex(req *ds.GetDomainTreeIndexRequest) (*ds.GetDomainTreeIndexResponse, error)
- func (mc *MapClient) GetEntries(req *ds.GetEntriesRequest) (*ds.GetEntriesResponse, error)
- func (mc *MapClient) GetEntryAndProof(req *ds.GetEntryAndProofRequest) (*ds.GetEntryAndProofResponse, error)
- func (mc *MapClient) GetSourceConsistencyProof(req *ds.GetSourceConsistencyProofRequest) (*ds.GetSourceConsistencyProofResponse, error)
- func (mc *MapClient) GetSourceLogAndProof(req *ds.GetSourceLogAndProofRequest) (*ds.GetSourceLogAndProofResponse, error)
- func (mc *MapClient) GetSourceLogs(req *ds.GetSourceLogsRequest) (*ds.GetSourceLogsResponse, error)
- func (mc *MapClient) URI() string
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 (*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 ¶
func (mc *MapClient) GetSourceConsistencyProof(req *ds.GetSourceConsistencyProofRequest) (*ds.GetSourceConsistencyProofResponse, error)
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`