Documentation ¶
Index ¶
- func Type(data []byte) (qt types.QueryType)
- type MultiResponse
- type Query
- type RequestByChainId
- type RequestByTxId
- type RequestByUrl
- type RequestDataEntry
- type RequestDataEntrySet
- type RequestDirectory
- type RequestKeyPageIndex
- func (v *RequestKeyPageIndex) BinarySize() int
- func (v *RequestKeyPageIndex) Equal(u *RequestKeyPageIndex) bool
- func (v *RequestKeyPageIndex) MarshalBinary() ([]byte, error)
- func (v *RequestKeyPageIndex) MarshalJSON() ([]byte, error)
- func (*RequestKeyPageIndex) Type() types.QueryType
- func (v *RequestKeyPageIndex) UnmarshalBinary(data []byte) error
- func (v *RequestKeyPageIndex) UnmarshalJSON(data []byte) error
- type RequestTxHistory
- type ResponseByChainId
- type ResponseByTxId
- func (v *ResponseByTxId) BinarySize() int
- func (v *ResponseByTxId) Equal(u *ResponseByTxId) bool
- func (v *ResponseByTxId) MarshalBinary() ([]byte, error)
- func (v *ResponseByTxId) MarshalJSON() ([]byte, error)
- func (t *ResponseByTxId) Size() int
- func (v *ResponseByTxId) UnmarshalBinary(data []byte) error
- func (v *ResponseByTxId) UnmarshalJSON(data []byte) error
- type ResponseChainEntry
- func (v *ResponseChainEntry) BinarySize() int
- func (v *ResponseChainEntry) Equal(u *ResponseChainEntry) bool
- func (v *ResponseChainEntry) MarshalBinary() ([]byte, error)
- func (v *ResponseChainEntry) MarshalJSON() ([]byte, error)
- func (v *ResponseChainEntry) UnmarshalBinary(data []byte) error
- func (v *ResponseChainEntry) UnmarshalJSON(data []byte) error
- type ResponseChainRange
- func (v *ResponseChainRange) BinarySize() int
- func (v *ResponseChainRange) Equal(u *ResponseChainRange) bool
- func (v *ResponseChainRange) MarshalBinary() ([]byte, error)
- func (v *ResponseChainRange) MarshalJSON() ([]byte, error)
- func (v *ResponseChainRange) UnmarshalBinary(data []byte) error
- func (v *ResponseChainRange) UnmarshalJSON(data []byte) error
- type ResponseKeyPageIndex
- type ResponsePending
- func (v *ResponsePending) BinarySize() int
- func (v *ResponsePending) Equal(u *ResponsePending) bool
- func (v *ResponsePending) MarshalBinary() ([]byte, error)
- func (v *ResponsePending) MarshalJSON() ([]byte, error)
- func (v *ResponsePending) UnmarshalBinary(data []byte) error
- func (v *ResponsePending) UnmarshalJSON(data []byte) error
- type ResponseTxHistory
- type TxReceipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MultiResponse ¶ added in v0.4.0
type MultiResponse struct { Type string `json:"type,omitempty" form:"type" query:"type" validate:"required"` Items []string `json:"items,omitempty" form:"items" query:"items" validate:"required"` Start uint64 `json:"start" form:"start" query:"start" validate:"required"` Count uint64 `json:"count" form:"count" query:"count" validate:"required"` Total uint64 `json:"total" form:"total" query:"total" validate:"required"` }
func (*MultiResponse) BinarySize ¶ added in v0.4.0
func (v *MultiResponse) BinarySize() int
func (*MultiResponse) MarshalBinary ¶ added in v0.4.0
func (v *MultiResponse) MarshalBinary() ([]byte, error)
func (*MultiResponse) UnmarshalBinary ¶ added in v0.4.0
func (v *MultiResponse) UnmarshalBinary(data []byte) error
type Query ¶
type Query struct { Type types.QueryType RouteId uint64 Content []byte //currently this is a transaction hash, but will make it more focused to the chain it is querying, so this will probably act more like general transaction does for transactions. }
Query will route a query message to a chain state
func (*Query) MarshalBinary ¶
func (*Query) UnmarshalBinary ¶
type RequestByChainId ¶
func (*RequestByChainId) MarshalBinary ¶
func (r *RequestByChainId) MarshalBinary() ([]byte, error)
func (*RequestByChainId) Type ¶
func (*RequestByChainId) Type() types.QueryType
func (*RequestByChainId) UnmarshalBinary ¶
func (r *RequestByChainId) UnmarshalBinary(data []byte) (err error)
type RequestByTxId ¶
func (*RequestByTxId) MarshalBinary ¶
func (t *RequestByTxId) MarshalBinary() (data []byte, err error)
func (*RequestByTxId) Type ¶
func (*RequestByTxId) Type() types.QueryType
func (*RequestByTxId) UnmarshalBinary ¶
func (t *RequestByTxId) UnmarshalBinary(data []byte) (err error)
type RequestByUrl ¶
func (*RequestByUrl) MarshalBinary ¶
func (r *RequestByUrl) MarshalBinary() ([]byte, error)
func (*RequestByUrl) Type ¶
func (*RequestByUrl) Type() types.QueryType
func (*RequestByUrl) UnmarshalBinary ¶
func (r *RequestByUrl) UnmarshalBinary(data []byte) (err error)
type RequestDataEntry ¶
type RequestDataEntry struct {
protocol.RequestDataEntry
}
func (*RequestDataEntry) Type ¶
func (*RequestDataEntry) Type() types.QueryType
type RequestDataEntrySet ¶
type RequestDataEntrySet struct {
protocol.RequestDataEntrySet
}
func (*RequestDataEntrySet) Type ¶
func (*RequestDataEntrySet) Type() types.QueryType
type RequestDirectory ¶
type RequestDirectory struct { RequestByUrl Start uint64 Limit uint64 ExpandChains bool }
func (*RequestDirectory) MarshalBinary ¶
func (r *RequestDirectory) MarshalBinary() ([]byte, error)
func (*RequestDirectory) Type ¶
func (*RequestDirectory) Type() types.QueryType
func (*RequestDirectory) UnmarshalBinary ¶
func (r *RequestDirectory) UnmarshalBinary(data []byte) (err error)
type RequestKeyPageIndex ¶
type RequestKeyPageIndex struct { Url string `json:"url,omitempty" form:"url" query:"url" validate:"required,acc-url"` Key []byte `json:"key,omitempty" form:"key" query:"key" validate:"required"` }
func (*RequestKeyPageIndex) BinarySize ¶
func (v *RequestKeyPageIndex) BinarySize() int
func (*RequestKeyPageIndex) Equal ¶
func (v *RequestKeyPageIndex) Equal(u *RequestKeyPageIndex) bool
func (*RequestKeyPageIndex) MarshalBinary ¶
func (v *RequestKeyPageIndex) MarshalBinary() ([]byte, error)
func (*RequestKeyPageIndex) MarshalJSON ¶
func (v *RequestKeyPageIndex) MarshalJSON() ([]byte, error)
func (*RequestKeyPageIndex) Type ¶
func (*RequestKeyPageIndex) Type() types.QueryType
func (*RequestKeyPageIndex) UnmarshalBinary ¶
func (v *RequestKeyPageIndex) UnmarshalBinary(data []byte) error
func (*RequestKeyPageIndex) UnmarshalJSON ¶
func (v *RequestKeyPageIndex) UnmarshalJSON(data []byte) error
type RequestTxHistory ¶
func (*RequestTxHistory) MarshalBinary ¶
func (t *RequestTxHistory) MarshalBinary() (data []byte, err error)
func (*RequestTxHistory) Type ¶
func (*RequestTxHistory) Type() types.QueryType
func (*RequestTxHistory) UnmarshalBinary ¶
func (t *RequestTxHistory) UnmarshalBinary(data []byte) (err error)
type ResponseByChainId ¶
func (*ResponseByChainId) MarshalBinary ¶
func (r *ResponseByChainId) MarshalBinary() ([]byte, error)
func (*ResponseByChainId) UnmarshalBinary ¶
func (r *ResponseByChainId) UnmarshalBinary(data []byte) (err error)
type ResponseByTxId ¶
type ResponseByTxId struct { TxId [32]byte `json:"txId,omitempty" form:"txId" query:"txId" validate:"required"` TxState []byte `json:"txState,omitempty" form:"txState" query:"txState" validate:"required"` TxPendingState []byte `json:"txPendingState,omitempty" form:"txPendingState" query:"txPendingState" validate:"required"` TxSynthTxIds []byte `json:"txSynthTxIds,omitempty" form:"txSynthTxIds" query:"txSynthTxIds" validate:"required"` Height int64 `json:"height" form:"height" query:"height" validate:"required"` ChainState [][]byte `json:"chainState,omitempty" form:"chainState" query:"chainState" validate:"required"` Receipts []*TxReceipt `json:"receipts,omitempty" form:"receipts" query:"receipts" validate:"required"` }
func (*ResponseByTxId) BinarySize ¶ added in v0.4.0
func (v *ResponseByTxId) BinarySize() int
func (*ResponseByTxId) Equal ¶ added in v0.4.0
func (v *ResponseByTxId) Equal(u *ResponseByTxId) bool
func (*ResponseByTxId) MarshalBinary ¶
func (v *ResponseByTxId) MarshalBinary() ([]byte, error)
func (*ResponseByTxId) MarshalJSON ¶ added in v0.4.0
func (v *ResponseByTxId) MarshalJSON() ([]byte, error)
func (*ResponseByTxId) Size ¶
func (t *ResponseByTxId) Size() int
func (*ResponseByTxId) UnmarshalBinary ¶
func (v *ResponseByTxId) UnmarshalBinary(data []byte) error
func (*ResponseByTxId) UnmarshalJSON ¶ added in v0.4.0
func (v *ResponseByTxId) UnmarshalJSON(data []byte) error
type ResponseChainEntry ¶ added in v0.4.0
type ResponseChainEntry struct { Height int64 `json:"height" form:"height" query:"height" validate:"required"` Entry []byte `json:"entry,omitempty" form:"entry" query:"entry" validate:"required"` State [][]byte `json:"state,omitempty" form:"state" query:"state" validate:"required"` }
func (*ResponseChainEntry) BinarySize ¶ added in v0.4.0
func (v *ResponseChainEntry) BinarySize() int
func (*ResponseChainEntry) Equal ¶ added in v0.4.0
func (v *ResponseChainEntry) Equal(u *ResponseChainEntry) bool
func (*ResponseChainEntry) MarshalBinary ¶ added in v0.4.0
func (v *ResponseChainEntry) MarshalBinary() ([]byte, error)
func (*ResponseChainEntry) MarshalJSON ¶ added in v0.4.0
func (v *ResponseChainEntry) MarshalJSON() ([]byte, error)
func (*ResponseChainEntry) UnmarshalBinary ¶ added in v0.4.0
func (v *ResponseChainEntry) UnmarshalBinary(data []byte) error
func (*ResponseChainEntry) UnmarshalJSON ¶ added in v0.4.0
func (v *ResponseChainEntry) UnmarshalJSON(data []byte) error
type ResponseChainRange ¶ added in v0.4.0
type ResponseChainRange struct { Start int64 `json:"start" form:"start" query:"start" validate:"required"` End int64 `json:"end" form:"end" query:"end" validate:"required"` Total int64 `json:"total" form:"total" query:"total" validate:"required"` Entries [][]byte `json:"entries,omitempty" form:"entries" query:"entries" validate:"required"` }
func (*ResponseChainRange) BinarySize ¶ added in v0.4.0
func (v *ResponseChainRange) BinarySize() int
func (*ResponseChainRange) Equal ¶ added in v0.4.0
func (v *ResponseChainRange) Equal(u *ResponseChainRange) bool
func (*ResponseChainRange) MarshalBinary ¶ added in v0.4.0
func (v *ResponseChainRange) MarshalBinary() ([]byte, error)
func (*ResponseChainRange) MarshalJSON ¶ added in v0.4.0
func (v *ResponseChainRange) MarshalJSON() ([]byte, error)
func (*ResponseChainRange) UnmarshalBinary ¶ added in v0.4.0
func (v *ResponseChainRange) UnmarshalBinary(data []byte) error
func (*ResponseChainRange) UnmarshalJSON ¶ added in v0.4.0
func (v *ResponseChainRange) UnmarshalJSON(data []byte) error
type ResponseKeyPageIndex ¶
type ResponseKeyPageIndex struct { KeyBook string `json:"keyBook,omitempty" form:"keyBook" query:"keyBook" validate:"required"` KeyPage string `json:"keyPage,omitempty" form:"keyPage" query:"keyPage" validate:"required"` Index uint64 `json:"index" form:"index" query:"index" validate:"required"` }
func (*ResponseKeyPageIndex) BinarySize ¶
func (v *ResponseKeyPageIndex) BinarySize() int
func (*ResponseKeyPageIndex) Equal ¶
func (v *ResponseKeyPageIndex) Equal(u *ResponseKeyPageIndex) bool
func (*ResponseKeyPageIndex) MarshalBinary ¶
func (v *ResponseKeyPageIndex) MarshalBinary() ([]byte, error)
func (*ResponseKeyPageIndex) UnmarshalBinary ¶
func (v *ResponseKeyPageIndex) UnmarshalBinary(data []byte) error
type ResponsePending ¶ added in v0.4.0
type ResponsePending struct {
Transactions [][32]byte `json:"transactions,omitempty" form:"transactions" query:"transactions" validate:"required"`
}
func (*ResponsePending) BinarySize ¶ added in v0.4.0
func (v *ResponsePending) BinarySize() int
func (*ResponsePending) Equal ¶ added in v0.4.0
func (v *ResponsePending) Equal(u *ResponsePending) bool
func (*ResponsePending) MarshalBinary ¶ added in v0.4.0
func (v *ResponsePending) MarshalBinary() ([]byte, error)
func (*ResponsePending) MarshalJSON ¶ added in v0.4.0
func (v *ResponsePending) MarshalJSON() ([]byte, error)
func (*ResponsePending) UnmarshalBinary ¶ added in v0.4.0
func (v *ResponsePending) UnmarshalBinary(data []byte) error
func (*ResponsePending) UnmarshalJSON ¶ added in v0.4.0
func (v *ResponsePending) UnmarshalJSON(data []byte) error
type ResponseTxHistory ¶
type ResponseTxHistory struct { Start int64 `json:"start" form:"start" query:"start" validate:"required"` End int64 `json:"end" form:"end" query:"end" validate:"required"` Total int64 `json:"total" form:"total" query:"total" validate:"required"` Transactions []ResponseByTxId `json:"transactions,omitempty" form:"transactions" query:"transactions" validate:"required"` }
func (*ResponseTxHistory) BinarySize ¶ added in v0.4.0
func (v *ResponseTxHistory) BinarySize() int
func (*ResponseTxHistory) Equal ¶ added in v0.4.0
func (v *ResponseTxHistory) Equal(u *ResponseTxHistory) bool
func (*ResponseTxHistory) MarshalBinary ¶
func (v *ResponseTxHistory) MarshalBinary() ([]byte, error)
func (*ResponseTxHistory) UnmarshalBinary ¶
func (v *ResponseTxHistory) UnmarshalBinary(data []byte) error
type TxReceipt ¶ added in v0.4.0
type TxReceipt struct { Account *url.URL `json:"account,omitempty" form:"account" query:"account" validate:"required"` Chain string `json:"chain,omitempty" form:"chain" query:"chain" validate:"required"` DirectoryBlock uint64 `json:"directoryBlock,omitempty" form:"directoryBlock" query:"directoryBlock" validate:"required"` Receipt protocol.Receipt `json:"receipt,omitempty" form:"receipt" query:"receipt" validate:"required"` }
func (*TxReceipt) BinarySize ¶ added in v0.4.0
func (*TxReceipt) MarshalBinary ¶ added in v0.4.0
func (*TxReceipt) UnmarshalBinary ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.