Documentation ¶
Index ¶
- Constants
- func IsHTTPNotFound(e error) bool
- type Address
- type BlobData
- type BlobInfo
- type Bytes
- type ChainIDBech32
- type ChainInfo
- type ChainNodeStatus
- type ChainRecord
- type ConsensusPipeMetrics
- type ConsensusWorkflowStatus
- type DKSharesInfo
- type DKSharesPostRequest
- type HTTPError
- type HashValue
- type InfoResponse
- type NodeConnectionMessageMetrics
- type NodeConnectionMessagesMetrics
- type NodeConnectionMetrics
- type NodeOwnerCertificateRequest
- type NodeOwnerCertificateResponse
- type OffLedgerRequestBody
- type PeeringNodeStatus
- type PeeringTrustedNode
- type RequestID
- type RequestReceiptResponse
- type WaitRequestProcessedParams
Constants ¶
const WaitRequestProcessedDefaultTimeout = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func IsHTTPNotFound ¶
IsHTTPNotFound returns true if the error is an HTTPError with status code http.StatusNotFound
Types ¶
type Address ¶
type Address string
Address is the string representation of iotago.Address
func NewAddress ¶
func (Address) MarshalJSON ¶
func (*Address) UnmarshalJSON ¶
type BlobData ¶
type BlobData struct {
Data Bytes `swagger:"desc(Blob content (base64))"`
}
func NewBlobData ¶
type BlobInfo ¶
type Bytes ¶
type Bytes string
Bytes is the base64 representation of a byte slice. It is intended to be a replacement for any []byte attribute in JSON models. Normally it shouldn't be necessary since the standard json package already handles []byte data, but this makes sure that the swagger documentation shows examples correctly (instead of as if a []byte was json-encoded as an array of ints).
func (Bytes) MarshalJSON ¶
func (*Bytes) UnmarshalJSON ¶
type ChainIDBech32 ¶
type ChainIDBech32 string
ChainIDBech32 is the string representation of isc.ChainIDBech32 (bech32)
func NewChainIDBech32 ¶
func NewChainIDBech32(chainID isc.ChainID) ChainIDBech32
func (ChainIDBech32) ChainID ¶
func (ch ChainIDBech32) ChainID() isc.ChainID
func (ChainIDBech32) MarshalJSON ¶
func (ch ChainIDBech32) MarshalJSON() ([]byte, error)
func (*ChainIDBech32) UnmarshalJSON ¶
func (ch *ChainIDBech32) UnmarshalJSON(b []byte) error
type ChainInfo ¶
type ChainInfo struct { ChainID ChainIDBech32 `json:"chainId" swagger:"desc(ChainID bech32)"` Active bool `json:"active" swagger:"desc(Whether or not the chain is active)"` StateAddress *Address `json:"stateAddress" swagger:"desc(State address, if we are part of it.)"` CommitteeNodes []*ChainNodeStatus `json:"committeeNodes" swagger:"desc(Committee nodes and their peering info.)"` AccessNodes []*ChainNodeStatus `json:"accessNodes" swagger:"desc(Access nodes and their peering info.)"` CandidateNodes []*ChainNodeStatus `json:"candidateNodes" swagger:"desc(Candidate nodes and their peering info.)"` }
type ChainNodeStatus ¶
type ChainNodeStatus struct { Node PeeringNodeStatus ForCommittee bool ForAccess bool AccessAPI string }
type ChainRecord ¶
type ChainRecord struct { ChainID ChainIDBech32 `json:"chainId" swagger:"desc(ChainID (bech32))"` Active bool `json:"active" swagger:"desc(Whether or not the chain is active)"` AccessNodes []string `json:"accessNodes" swagger:"desc(list of access nodes public keys, hex encoded)"` }
func NewChainRecord ¶
func NewChainRecord(rec *registry.ChainRecord) *ChainRecord
func (*ChainRecord) Record ¶
func (bd *ChainRecord) Record() (*registry.ChainRecord, error)
type ConsensusPipeMetrics ¶
type ConsensusWorkflowStatus ¶
type ConsensusWorkflowStatus struct { FlagStateReceived bool `json:"flagStateReceived" swagger:"desc(Shows if state output is received in current consensus iteration)"` FlagBatchProposalSent bool `json:"flagBatchProposalSent" swagger:"desc(Shows if batch proposal is sent out in current consensus iteration)"` FlagConsensusBatchKnown bool `` /* 126-byte string literal not displayed */ FlagVMStarted bool `json:"flagVMStarted" swagger:"desc(Shows if virtual machine is started in current consensus iteration)"` FlagVMResultSigned bool `json:"flagVMResultSigned" swagger:"desc(Shows if virtual machine has returned its results in current consensus iteration)"` FlagTransactionFinalized bool `json:"flagTransactionFinalized" swagger:"desc(Shows if consensus on transaction is reached in current consensus iteration)"` FlagTransactionPosted bool `json:"flagTransactionPosted" swagger:"desc(Shows if transaction is posted to L1 in current consensus iteration)"` FlagTransactionSeen bool `` /* 127-byte string literal not displayed */ FlagInProgress bool `json:"flagInProgress" swagger:"desc(Shows if consensus algorithm is still not completed in current consensus iteration)"` TimeBatchProposalSent time.Time `json:"timeBatchProposalSent" swagger:"desc(Shows when batch proposal was last sent out in current consensus iteration)"` TimeConsensusBatchKnown time.Time `` /* 140-byte string literal not displayed */ TimeVMStarted time.Time `json:"timeVMStarted" swagger:"desc(Shows when virtual machine was last started in current consensus iteration)"` TimeVMResultSigned time.Time `` /* 137-byte string literal not displayed */ TimeTransactionFinalized time.Time `` /* 175-byte string literal not displayed */ TimeTransactionPosted time.Time `json:"timeTransactionPosted" swagger:"desc(Shows when transaction was last posted to L1 in current consensus iteration)"` TimeTransactionSeen time.Time `` /* 143-byte string literal not displayed */ TimeCompleted time.Time `json:"timeCompleted" swagger:"desc(Shows when algorithm was last completed in current consensus iteration)"` CurrentStateIndex uint32 `json:"currentStateIndex" swagger:"desc(Shows current state index of the consensus)"` }
type DKSharesInfo ¶
type DKSharesInfo struct {}
DKSharesInfo stands for the DKShare representation, returned by the GET and POST methods.
type DKSharesPostRequest ¶
type DKSharesPostRequest struct {}
DKSharesPostRequest is a POST request for creating new DKShare.
type HTTPError ¶
type HTTPError struct { // StatusCode is the associated HTTP status code (default: htttp.StatusInternalServerError) StatusCode int // Message is the error message Message string }
HTTPError is the standard error response for all webapi endpoints, and also implements the Go error interface.
func NewHTTPError ¶
NewHTTPError creates a new HTTPError
type HashValue ¶
type HashValue string
HashValue is the hex representation of a hashing.HashValue
func NewHashValue ¶
func (HashValue) MarshalJSON ¶
func (*HashValue) UnmarshalJSON ¶
type InfoResponse ¶
type NodeConnectionMessageMetrics ¶
type NodeConnectionMessageMetrics struct { Total uint32 `json:"total" swagger:"desc(Total number of messages sent/received)"` LastEvent time.Time `json:"lastEvent" swagger:"desc(Last time the message was sent/received)"` LastMessage string `json:"lastMessage" swagger:"desc(The print out of the last message)"` }
func NewNodeConnectionMessageMetrics ¶
func NewNodeConnectionMessageMetrics[T any](metrics nodeconnmetrics.NodeConnectionMessageMetrics[T]) *NodeConnectionMessageMetrics
type NodeConnectionMessagesMetrics ¶
type NodeConnectionMessagesMetrics struct { OutPublishStateTransaction *NodeConnectionMessageMetrics `json:"outPublishStateTransaction" swagger:"desc(Stats of sent out PublishStateTransaction messages)"` OutPublishGovernanceTransaction *NodeConnectionMessageMetrics `json:"outPublishGovernanceTransaction" swagger:"desc(Stats of sent out PublishGovernanceTransaction messages)"` OutPullLatestOutput *NodeConnectionMessageMetrics `json:"outPullLatestOutput" swagger:"desc(Stats of sent out PullLatestOutput messages)"` OutPullTxInclusionState *NodeConnectionMessageMetrics `json:"outPullTxInclusionState" swagger:"desc(Stats of sent out PullTxInclusionState messages)"` OutPullOutputByID *NodeConnectionMessageMetrics `json:"outPullOutputByID" swagger:"desc(Stats of sent out PullOutputByID messages)"` InStateOutput *NodeConnectionMessageMetrics `json:"inStateOutput" swagger:"desc(Stats of received State output messages)"` InAliasOutput *NodeConnectionMessageMetrics `json:"inAliasOutput" swagger:"desc(Stats of received AliasOutput messages)"` InOutput *NodeConnectionMessageMetrics `json:"inOutput" swagger:"desc(Stats of received Output messages)"` InOnLedgerRequest *NodeConnectionMessageMetrics `json:"inOnLedgerRequest" swagger:"desc(Stats of received OnLedgerRequest messages)"` InTxInclusionState *NodeConnectionMessageMetrics `json:"inTxInclusionState" swagger:"desc(Stats of received TxInclusionState messages)"` }
func NewNodeConnectionMessagesMetrics ¶
func NewNodeConnectionMessagesMetrics(metrics nodeconnmetrics.NodeConnectionMessagesMetrics) *NodeConnectionMessagesMetrics
type NodeConnectionMetrics ¶
type NodeConnectionMetrics struct { NodeConnectionMessagesMetrics `json:"nodeConnectionMessagesMetrics"` InMilestone *NodeConnectionMessageMetrics `json:"inMilestone" swagger:"desc(Stats of received Milestone messages)"` Registered []ChainIDBech32 `json:"registered" swagger:"desc(Chain IDs of the chains registered to receiving L1 events)"` }
func NewNodeConnectionMetrics ¶
func NewNodeConnectionMetrics(metrics nodeconnmetrics.NodeConnectionMetrics) *NodeConnectionMetrics
type NodeOwnerCertificateResponse ¶
type NodeOwnerCertificateResponse struct {
Certificate Bytes `json:"certificate" swagger:"desc(Certificate stating the ownership. (base64))"`
}
type OffLedgerRequestBody ¶
type OffLedgerRequestBody struct {
Request Bytes `json:"request" swagger:"desc(Offledger Request (base64))"`
}
type PeeringNodeStatus ¶
type PeeringTrustedNode ¶
type PeeringTrustedNode struct { PubKey string `json:"pubKey" swagger:"desc(Public key of the NetID.)"` NetID string `json:"netId" swagger:"desc(NetID of a peer to trust.)"` }
PeeringTrustedNode describes single node in the list of trusted peering nodes.
func NewPeeringTrustedNode ¶
func NewPeeringTrustedNode(tp *peering.TrustedPeer) *PeeringTrustedNode
type RequestID ¶
type RequestID string
RequestID is the string representation of isc.RequestID
func NewRequestID ¶
func (RequestID) MarshalJSON ¶
func (*RequestID) UnmarshalJSON ¶
type RequestReceiptResponse ¶
type RequestReceiptResponse struct {
Receipt string `json:"receipt" swagger:"desc(Request receipt, empty if request was not processed)"`
}