Documentation ¶
Index ¶
Constants ¶
View Source
const ( InvalidRecordError = "Record error: Invalid record" RecordNotFoundError = "Infrastructure error: Http Client error: Request error - API connected by HttpClient found an error: record not found" WaitAnchorTimeoutError = "Anchor error: Wait Anchor timed out" AnchorNotFoundError = "Infrastructure error: Http Client error: API connected by HttpClient found an error: anchor not found" )
Variables ¶
This section is empty.
Functions ¶
func ListOfNetworks ¶
func ListOfNetworks() networks
func NetworkToProto ¶
Types ¶
type Anchor ¶
type Anchor struct { Id int64 BlockRoots []string Networks []AnchorNetwork Root string Status string }
func NewAnchorFromProto ¶
type AnchorNetwork ¶
func MapAnchorNetworksFromProto ¶
func MapAnchorNetworksFromProto(n []*proto.AnchorNetwork) []AnchorNetwork
func NewAnchorNetworkFromProto ¶
func NewAnchorNetworkFromProto(a *proto.AnchorNetwork) AnchorNetwork
func (AnchorNetwork) ToProto ¶
func (a AnchorNetwork) ToProto() *proto.AnchorNetwork
type AnchorParams ¶
type AnchorParams struct {
Timeout int64
}
func NewAnchorParams ¶
func NewAnchorParams() AnchorParams
type NetworkParams ¶
type NetworkParams struct {
Network Network
}
func NewNetworkParams ¶
func NewNetworkParams() NetworkParams
type Proof ¶
type Proof struct { Leaves []string Nodes []string Depth string Bitmap string Anchor ProofAnchor }
func NewProofFromProto ¶
type ProofAnchor ¶
type ProofAnchor struct { AnchorID int64 Networks []AnchorNetwork Root string Status string }
func NewProofAnchorFromProto ¶
func NewProofAnchorFromProto(p *proto.ProofAnchor) ProofAnchor
func (ProofAnchor) ToProto ¶
func (p ProofAnchor) ToProto() *proto.ProofAnchor
type RecordReceipt ¶
func NewRecordReceiptFromProto ¶
func NewRecordReceiptFromProto(r *proto.RecordReceipt) RecordReceipt
Click to show internal directories.
Click to hide internal directories.