Documentation ¶
Index ¶
- Variables
- type AddNeighbors
- type AddNeighborsResponse
- type AttachToTangle
- type AttachToTangleReturn
- type BradcastTransactionsReturn
- type BroadcastTransactions
- type CheckConsistency
- type CheckConsistencyReturn
- type ErrorReturn
- type FindTransactions
- type FindTransactionsReturn
- type GetBalances
- type GetBalancesReturn
- type GetInclusionStates
- type GetInclusionStatesReturn
- type GetLedgerDiff
- type GetLedgerDiffReturn
- type GetNeighbors
- type GetNeighborsReturn
- type GetNodeAPIConfiguration
- type GetNodeAPIConfigurationReturn
- type GetNodeInfo
- type GetNodeInfoReturn
- type GetSnapshot
- type GetSnapshotReturn
- type GetTransactionsToApprove
- type GetTransactionsToApproveReturn
- type GetTrytes
- type GetTrytesReturn
- type Neighbor
- type RemoveNeighbors
- type RemoveNeighborsReturn
- type StoreTransactions
- type WereAddressesSpentFrom
- type WereAddressesSpentFromReturn
Constants ¶
This section is empty.
Variables ¶
var PLUGIN = node.NewPlugin("WebAPI", node.Enabled, configure, run)
PLUGIN WebAPI
Functions ¶
This section is empty.
Types ¶
type AddNeighbors ¶
AddNeighbors struct
type AddNeighborsResponse ¶
type AddNeighborsResponse struct { AddedNeighbors int `json:"addedNeighbors"` Duration int `json:"duration"` }
AddNeighborsResponse struct
type AttachToTangle ¶
type AttachToTangle struct { Command string `json:"command"` TrunkTransaction string `json:"trunkTransaction"` BranchTransaction string `json:"branchTransaction"` MinWeightMagnitude int `json:"minWeightMagnitude"` Trytes []string `json:"trytes"` }
AttachToTangle struct
type AttachToTangleReturn ¶
AttachToTangleReturn struct
type BradcastTransactionsReturn ¶
type BradcastTransactionsReturn struct {
Duration int `json:"duration"`
}
BradcastTransactionsReturn struct
type BroadcastTransactions ¶
type BroadcastTransactions struct { Command string `json:"command"` Trytes []string `json:"trytes"` }
BroadcastTransactions struct
type CheckConsistency ¶
CheckConsistency struct
type CheckConsistencyReturn ¶
type CheckConsistencyReturn struct { State bool `json:"state"` Info string `json:"info,omitempty"` Duration int `json:"duration"` }
CheckConsistencyReturn struct
type FindTransactions ¶
type FindTransactions struct { Command string `json:"command"` Bundles []string `json:"bundles,omitempty"` Addresses []string `json:"addresses,omitempty"` }
FindTransactions struct
type FindTransactionsReturn ¶
type FindTransactionsReturn struct { Hashes []string `json:"hashes"` Duration int `json:"duration"` }
FindTransactionsReturn struct
type GetBalances ¶
GetBalances struct
type GetBalancesReturn ¶
type GetBalancesReturn struct { Balances []string `json:"balances"` References []string `json:"references"` MilestoneIndex uint32 `json:"milestoneIndex"` Duration int `json:"duration"` }
GetBalancesReturn struct
type GetInclusionStates ¶
type GetInclusionStates struct { Command string `json:"command"` Transactions []string `json:"transactions"` }
GetInclusionStates struct
type GetInclusionStatesReturn ¶
type GetInclusionStatesReturn struct { States []bool `json:"states"` Duration int `json:"duration"` }
GetInclusionStatesReturn struct
type GetLedgerDiff ¶
type GetLedgerDiff struct { Command string `json:"command"` MilestoneIndex uint64 `json:"milestoneIndex"` }
GetLedgerDiff struct
type GetLedgerDiffReturn ¶
type GetLedgerDiffReturn struct { Diff map[string]int64 `json:"diff"` MilestoneIndex uint64 `json:"milestoneIndex"` Duration int `json:"duration"` }
GetLedgerDiffReturn struct
type GetNeighbors ¶
type GetNeighbors struct {
Command string `json:"command"`
}
GetNeighbors struct
type GetNeighborsReturn ¶
type GetNeighborsReturn struct { Neighbors []gossip.NeighborInfo `json:"neighbors"` Duration int `json:"duration"` }
GetNeighborsReturn struct
type GetNodeAPIConfiguration ¶
type GetNodeAPIConfiguration struct {
Command string `json:"command"`
}
GetNodeAPIConfiguration struct
type GetNodeAPIConfigurationReturn ¶
type GetNodeAPIConfigurationReturn struct { MaxFindTransactions int `json:"maxFindTransactions"` MaxRequestsList int `json:"maxRequestsList"` MaxGetTrytes int `json:"maxGetTrytes"` MaxBodyLength int `json:"maxBodyLength"` MilestoneStartIndex uint32 `json:"milestoneStartIndex,omitempty"` Duration int `json:"duration"` }
GetNodeAPIConfigurationReturn struct
type GetNodeInfoReturn ¶
type GetNodeInfoReturn struct { AppName string `json:"appName"` AppVersion string `json:"appVersion"` LatestMilestone string `json:"latestMilestone"` LatestMilestoneIndex uint32 `json:"latestMilestoneIndex"` LatestSolidSubtangleMilestone string `json:"latestSolidSubtangleMilestone"` LatestSolidSubtangleMilestoneIndex uint32 `json:"latestSolidSubtangleMilestoneIndex"` MilestoneStartIndex uint32 `json:"milestoneStartIndex,omitempty"` LastSnapshottedMilestoneIndex uint32 `json:"lastSnapshottedMilestoneIndex,omitempty"` Neighbors uint `json:"neighbors"` Time int64 `json:"time"` Tips uint16 `json:"tips"` TransactionsToRequest int `json:"transactionsToRequest"` Features []string `json:"features"` CoordinatorAddress string `json:"coordinatorAddress"` Duration int `json:"duration"` }
GetNodeInfoReturn struct
type GetSnapshotReturn ¶
type GetSnapshotReturn struct { Balances map[string]uint64 `json:"balances"` MilestoneIndex uint64 `json:"milestoneIndex"` Duration int `json:"duration"` }
GetSnapshotReturn struct
type GetTransactionsToApprove ¶
type GetTransactionsToApprove struct { Command string `json:"command"` Depth uint `json:"depth"` Reference string `json:"reference,omitempty"` }
GetTransactionsToApprove struct
type GetTransactionsToApproveReturn ¶
type GetTransactionsToApproveReturn struct { TrunkTransaction string `json:"trunkTransaction"` BranchTransaction string `json:"branchTransaction"` Duration int `json:"duration"` }
GetTransactionsToApproveReturn struct
type GetTrytesReturn ¶
GetTrytesReturn struct
type Neighbor ¶
type Neighbor struct { Address string `json:"address"` NumberOfAllTransactions uint32 `json:"numberOfAllTransactions"` NumberOfRandomTransactionRequests uint32 `json:"numberOfRandomTransactionRequests"` NumberOfNewTransactions uint32 `json:"numberOfNewTransactions"` NumberOfInvalidTransactions uint32 `json:"numberOfInvalidTransactions"` NumberOfStaleTransactions uint32 `json:"numberOfStaleTransactions"` NumberOfSentTransactions uint32 `json:"numberOfSentTransactions"` Connectiontype string `json:"connectiontype"` }
Neighbor struct
type RemoveNeighbors ¶
RemoveNeighbors struct
type RemoveNeighborsReturn ¶
type RemoveNeighborsReturn struct { RemovedNeighbors uint `json:"removedNeighbors"` Duration int `json:"duration"` }
RemoveNeighborsReturn struct
type StoreTransactions ¶
StoreTransactions struct
type WereAddressesSpentFrom ¶
type WereAddressesSpentFrom struct { Command string `json:"wereAddressesSpentFrom"` Addresses []string `json:"addresses"` }
WereAddressesSpentFrom struct
type WereAddressesSpentFromReturn ¶
type WereAddressesSpentFromReturn struct { States []bool `json:"states"` Duration int `json:"duration"` }
WereAddressesSpentFromReturn struct