Documentation ¶
Index ¶
- Constants
- func IsHTTPNotFound(e error) bool
- type Address
- type BlobData
- type BlobInfo
- type Bytes
- type ChainID
- type ChainRecord
- type Color
- type CommitteeRecord
- type DKSharesInfo
- type DKSharesPostRequest
- type HTTPError
- type HashValue
- type InfoResponse
- type OffLedgerRequestBody
- type PeeringNodeStatus
- type PeeringTrustedNode
- type RequestStatusResponse
- type ValueTxID
- 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 base58-encoded representation of ledgerstate.Address
func NewAddress ¶
func NewAddress(address ledgerstate.Address) Address
func (Address) Address ¶
func (a Address) Address() ledgerstate.Address
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 ChainID ¶
type ChainID string
ChainID is the base58 representation of iscp.ChainID
func NewChainID ¶
func (ChainID) MarshalJSON ¶
func (*ChainID) UnmarshalJSON ¶
type ChainRecord ¶
type ChainRecord struct { ChainID ChainID `swagger:"desc(ChainID (base58-encoded))"` Active bool `swagger:"desc(Whether or not the chain is active)"` Peers []string `swagger:"desc(List of peers/access nodes (network IDs))"` }
func NewChainRecord ¶
func NewChainRecord(rec *registry.ChainRecord) *ChainRecord
func (*ChainRecord) Record ¶ added in v0.2.0
func (bd *ChainRecord) Record() *registry.ChainRecord
type Color ¶
type Color string
Color is the base58 representation of ledgerstate.Color
func NewColor ¶
func NewColor(color ledgerstate.Color) Color
func (Color) Color ¶
func (c Color) Color() ledgerstate.Color
func (Color) MarshalJSON ¶
func (*Color) UnmarshalJSON ¶
type CommitteeRecord ¶ added in v0.2.0
type CommitteeRecord struct { Address Address `swagger:"desc(Committee address (base58-encoded))"` Nodes []string `swagger:"desc(List of committee nodes (network IDs))"` }
func NewCommitteeRecord ¶ added in v0.2.0
func NewCommitteeRecord(bd *registry.CommitteeRecord) *CommitteeRecord
func (*CommitteeRecord) Record ¶ added in v0.2.0
func (bd *CommitteeRecord) Record() *registry.CommitteeRecord
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 base58 representation of a hashing.HashValue
func NewHashValue ¶
func (HashValue) MarshalJSON ¶
func (*HashValue) UnmarshalJSON ¶
type InfoResponse ¶
type OffLedgerRequestBody ¶ added in v0.2.0
type OffLedgerRequestBody struct {
Request Bytes `swagger:"desc(Offledger Request (base64))"`
}
type PeeringNodeStatus ¶ added in v0.2.0
type PeeringTrustedNode ¶ added in v0.2.0
type PeeringTrustedNode struct { PubKey string `json:"pubKey" swagger:"desc(Public key of the NetID, base58.)"` 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 ¶ added in v0.2.0
func NewPeeringTrustedNode(tp *peering.TrustedPeer) *PeeringTrustedNode
type RequestStatusResponse ¶
type RequestStatusResponse struct {
IsProcessed bool `swagger:"desc(True if the request has been processed)"`
}
type ValueTxID ¶
type ValueTxID string
ValueTxID is the base58 representation of a transaction ID
func NewValueTxID ¶
func NewValueTxID(id *ledgerstate.TransactionID) ValueTxID
func (ValueTxID) ID ¶
func (id ValueTxID) ID() ledgerstate.TransactionID