Documentation
¶
Index ¶
- Constants
- func IsHTTPNotFound(e error) bool
- type Address
- type BlobData
- type BlobInfo
- type Bytes
- type ChainID
- type ChainRecord
- type Color
- type DKSharesInfo
- type DKSharesPostRequest
- type HTTPError
- type HashValue
- type InfoResponse
- type RequestStatusResponse
- type SCStateDump
- 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 address.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
func (Bytes) MarshalJSON ¶
func (*Bytes) UnmarshalJSON ¶
type ChainID ¶
type ChainID string
ChainID is the base58 representation of coretypes.ChainID
func NewChainID ¶
func (ChainID) MarshalJSON ¶
func (*ChainID) UnmarshalJSON ¶
type ChainRecord ¶
type ChainRecord struct { ChainID ChainID `swagger:"desc(ChainID (base58-encoded))"` Color Color `swagger:"desc(Chain color (base58-encoded))"` CommitteeNodes []string `swagger:"desc(List of committee nodes (network IDs))"` Active bool `swagger:"desc(Whether or not the chain is active)"` }
func NewChainRecord ¶
func NewChainRecord(bd *registry.ChainRecord) *ChainRecord
func (*ChainRecord) ChainRecord ¶
func (bd *ChainRecord) ChainRecord() *registry.ChainRecord
type Color ¶
type Color string
Color is the base58 representation of balance.Color
func (Color) MarshalJSON ¶
func (*Color) UnmarshalJSON ¶
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 RequestStatusResponse ¶
type RequestStatusResponse struct {
IsProcessed bool `swagger:"desc(True if the request has been processed)"`
}
type SCStateDump ¶
type ValueTxID ¶
type ValueTxID string
ValueTxID is the base58 representation of a transaction ID
func NewValueTxID ¶
func NewValueTxID(id *valuetransaction.ID) ValueTxID
func (ValueTxID) ID ¶
func (id ValueTxID) ID() valuetransaction.ID