Documentation
¶
Index ¶
- type Balances
- type Client
- func (c *Client) AddNeighbors(uris []string) error
- func (c *Client) AttachToTangle(trunkTransaction string, branchTransaction string, minWeightMagnitude int, ...) (Trytes, error)
- func (c *Client) BroadcastTransactions(trytes []string) error
- func (c *Client) FindTransactions(bundles, addresses, tags, approvees []string) (Transactions, error)
- func (c *Client) GetBalances(addresses []string) (Balances, error)
- func (c *Client) GetInclusionStates(transactions, tips []string) (InclusionStates, error)
- func (c *Client) GetNeighbors() (Neighbors, error)
- func (c *Client) GetNodeInfo() (NodeInfo, error)
- func (c *Client) GetTips() (Tips, error)
- func (c *Client) GetTransactionsToApprove(depth int) (TransactionsToApprove, error)
- func (c *Client) GetTrytes(hashes []string) (Trytes, error)
- func (c *Client) RemoveNeighbors(uris []string) error
- func (c *Client) StoreTransactions(trytes []string) error
- type Command
- type InclusionStates
- type Neighbor
- type Neighbors
- type NodeInfo
- type Tips
- type Transactions
- type TransactionsToApprove
- type Trytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
URI string //API address of IRI, including port
// contains filtered or unexported fields
}
func (*Client) AddNeighbors ¶
func (*Client) AttachToTangle ¶
func (*Client) BroadcastTransactions ¶
func (*Client) FindTransactions ¶
func (c *Client) FindTransactions(bundles, addresses, tags, approvees []string) (Transactions, error)
func (*Client) GetInclusionStates ¶
func (c *Client) GetInclusionStates(transactions, tips []string) (InclusionStates, error)
func (*Client) GetNeighbors ¶
func (*Client) GetNodeInfo ¶
func (*Client) GetTransactionsToApprove ¶
func (c *Client) GetTransactionsToApprove(depth int) (TransactionsToApprove, error)
func (*Client) RemoveNeighbors ¶
func (*Client) StoreTransactions ¶
type Command ¶
type Command struct {
Addresses []string `json:"addresses,omitempty"`
Approvees []string `json:"approvees,omitempty"`
BranchTransaction string `json:"branchTransaction,omitempty"`
Bundles []string `json:"bundles,omitempty"`
Command string `json:"command"`
Depth int `json:"depth,omitempty"`
Hashes []string `json:"hashes,omitempty"`
MinWeightMagnitude int `json:"minWeightMagnitude,omitempty"`
Tags []string `json:"tags,omitempty"`
Threshold int `json:"threshold,omitempty"`
Tips []string `json:"tips,omitempty"`
Transactions []string `json:"transactions,omitempty"`
TrunkTransaction string `json:"trunkTransaction,omitempty"`
Trytes []string `json:"trytes,omitempty"`
URIs []string `json:"uris,omitempty"`
}
type InclusionStates ¶
type Neighbor ¶
type Neighbor struct {
Address string `json:"address"`
ConnectionType string `json:"connectionType"`
NumberOfAllTransactions int `json:"numberOfAllTransactions"`
NumberOfInvalidTransactions int `json:"numberOfInvalidTransactions"`
NumberOfNewTransactions int `json:"numberOfNewTransactions"`
NumberOfRandomTransactionRequests int `json:"numberOfRandomTransactionRequests"`
NumberOfSentTransactions int `json:"numberOfSentTransactions"`
}
type NodeInfo ¶
type NodeInfo struct {
AppName string `json:"appName"`
AppVersion string `json:"appVersion"`
Duration int `json:"duration"`
JREAvailableProcessors int `json:"jreAvailableProcessors"`
JREFreeMemory int `json:"jreFreeMemory"`
JREMaxMemory int `json:"jreMaxMemory"`
JRETotalMemory int `json:"jreTotalMemory"`
LatestMilestone string `json:"latestMilestone"`
LatestMilestoneIndex int `json:"latestMilestoneIndex"`
LatestSolidSubtangleMilestone string `json:"latestSolidSubtangleMilestone"`
LatestSolidSubtangleMilestoneIndex int `json:"latestSolidSubtangleMilestoneIndex"`
Neighbors int `json:"neighbors"`
PacketsQueueSize int `json:"packetsQueueSize"`
Time int `json:"time"`
Tips int `json:"tips"`
TransactionsToRequest int `json:"transactionsToRequest"`
}
type Transactions ¶
type Transactions struct {
Hashes []string `json:"hashes"`
}
type TransactionsToApprove ¶
Click to show internal directories.
Click to hide internal directories.