Documentation ¶
Index ¶
- Variables
- type AddNeighbors
- type AddNeighborsHornet
- type AddNeighborsResponse
- type AttachToTangle
- type AttachToTangleReturn
- type BradcastTransactionsReturn
- type BroadcastTransactions
- type BundleWithValue
- type CheckConsistency
- type CheckConsistencyReturn
- type CreateSnapshot
- type CreateSnapshotReturn
- type ErrorReturn
- type FindTransactions
- type FindTransactionsReturn
- type GetBalances
- type GetBalancesReturn
- type GetInclusionStates
- type GetInclusionStatesReturn
- type GetLedgerDiff
- type GetLedgerDiffExt
- type GetLedgerDiffExtReturn
- type GetLedgerDiffReturn
- type GetNeighbors
- type GetNeighborsReturn
- type GetNodeAPIConfiguration
- type GetNodeAPIConfigurationReturn
- type GetNodeInfo
- type GetNodeInfoReturn
- type GetRequests
- type GetRequestsReturn
- type GetSnapshot
- type GetSnapshotReturn
- type GetTransactionsToApprove
- type GetTransactionsToApproveReturn
- type GetTrytes
- type GetTrytesReturn
- type Neighbor
- type RemoveNeighbors
- type RemoveNeighborsReturn
- type StoreTransactions
- type TxHashWithValue
- type TxWithValue
- 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 legacy struct
type AddNeighborsHornet ¶ added in v0.2.8
type AddNeighborsHornet struct { Command string `json:"command"` Neighbors []Neighbor `json:"neighbors"` }
AddNeighborsHornet 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 BundleWithValue ¶ added in v0.2.11
type BundleWithValue struct { BundleHash string `json:"bundleHash"` TailTxHash string `json:"tailTxHash"` LastIndex uint64 `json:"lastIndex"` Txs []*TxWithValue `json:"txs"` }
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 CreateSnapshot ¶ added in v0.3.0
type CreateSnapshot struct { Command string `json:"command"` TargetIndex uint64 `json:"targetIndex"` FilePath string `json:"filePath"` }
CreateSnapshot struct
type CreateSnapshotReturn ¶ added in v0.3.0
type CreateSnapshotReturn struct {
Duration int `json:"duration"`
}
GetSnapshotReturn 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 GetLedgerDiffExt ¶ added in v0.2.11
type GetLedgerDiffExt struct { Command string `json:"command"` MilestoneIndex uint64 `json:"milestoneIndex"` }
GetLedgerDiffExt struct
type GetLedgerDiffExtReturn ¶ added in v0.2.11
type GetLedgerDiffExtReturn struct { ConfirmedTxWithValue []*TxHashWithValue `json:"confirmedTxWithValue"` ConfirmedBundlesWithValue []*BundleWithValue `json:"confirmedBundlesWithValue"` Diff map[string]int64 `json:"diff"` MilestoneIndex uint64 `json:"milestoneIndex"` Duration int `json:"duration"` }
GetLedgerDiffReturn 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"` IsSynced bool `json:"isSynced"` 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 GetRequests ¶ added in v0.3.0
type GetRequests struct {
Command string `json:"command"`
}
GetRequests struct
type GetRequestsReturn ¶ added in v0.3.0
type GetRequestsReturn struct {
Requests []*queue.DebugRequest `json:"requests"`
}
GetRequestsReturn 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 { Identity string `json:"identity"` Alias string `json:"alias"` PreferIPv6 bool `json:"prefer_ipv6"` }
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 TxHashWithValue ¶ added in v0.2.11
type TxWithValue ¶ added in v0.2.11
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