Documentation ¶
Index ¶
- type Details
- type Flag
- type Flagger
- type Flags
- type GetTxList
- type GetTxListAttributes
- type GetTxListListResponse
- type GetTxListRelationships
- type GetTxListResponse
- type Included
- type Key
- type Links
- type Relation
- type RelationCollection
- type Resource
- type ResourceType
- type TxBlob
- type TxBlobRelationship
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details json.RawMessage
func (Details) MarshalJSON ¶
MarshalJSON - casts Details to []byte
func (*Details) UnmarshalJSON ¶
UnmarshalJSON - casts data to Details
type GetTxList ¶
type GetTxList struct { Key Attributes GetTxListAttributes `json:"attributes"` Relationships GetTxListRelationships `json:"relationships"` }
type GetTxListAttributes ¶
type GetTxListAttributes struct {
Transactions []TxBlob `json:"transactions"`
}
type GetTxListListResponse ¶
type GetTxListRelationships ¶
type GetTxListRelationships struct {
Data TxBlobRelationship `json:"data"`
}
type GetTxListResponse ¶
type Included ¶
type Included struct {
// contains filtered or unexported fields
}
Included - an array of Resource objects that are related to the primary data and/or each other (“included resources”).
func (Included) MarshalJSON ¶
MarshalJSON - marshals include collection as array of json objects
func (*Included) MustGetTxList ¶
MustGetTxList - returns GetTxList from include collection. if entry with specified key does not exist - returns nil if entry with specified key exists but type or ID mismatches - panics
func (*Included) UnmarshalJSON ¶
UmarshalJSON - unmarshal array of json objects into include collection
type Key ¶
type Key struct { ID string `json:"id"` Type ResourceType `json:"type"` }
func NewKeyInt64 ¶
func NewKeyInt64(id int64, resourceType ResourceType) Key
func (Key) AsRelation ¶
type RelationCollection ¶
func (RelationCollection) MarshalJSON ¶
func (r RelationCollection) MarshalJSON() ([]byte, error)
type ResourceType ¶
type ResourceType string
const (
TRANSACTIONS ResourceType = "transactions"
)
List of ResourceType
type TxBlob ¶
type TxBlob struct { Currency string `json:"currency"` NetworkFrom int32 `json:"network_from"` NetworkTo int32 `json:"network_to"` PaymentId string `json:"payment_id"` Recipient string `json:"recipient"` Sender string `json:"sender"` Timestamp string `json:"timestamp"` TxHashFrom string `json:"tx_hash_from"` TxHashTo string `json:"tx_hash_to"` ValueTo string `json:"value_to"` }
type TxBlobRelationship ¶
type TxBlobRelationship struct {
Address *string `json:"address,omitempty"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.