webapi

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PLUGIN = node.NewPlugin("WebAPI", node.Enabled, configure, run)

PLUGIN WebAPI

Functions

This section is empty.

Types

type AddNeighbors

type AddNeighbors struct {
	Command string   `json:"command"`
	Uris    []string `json:"uris"`
}

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

type AttachToTangleReturn struct {
	Trytes   []string `json:"trytes"`
	Duration int      `json:"duration"`
}

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

type CheckConsistency struct {
	Command string   `json:"command"`
	Tails   []string `json:"tails"`
}

CheckConsistency struct

type CheckConsistencyReturn

type CheckConsistencyReturn struct {
	State    bool   `json:"state"`
	Info     string `json:"info,omitempty"`
	Duration int    `json:"duration"`
}

CheckConsistencyReturn struct

type ErrorReturn

type ErrorReturn struct {
	Error string `json:"error"`
}

ErrorReturn 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

type GetBalances struct {
	Command   string   `json:"command"`
	Addresses []string `json:"addresses"`
}

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 GetNodeInfo

type GetNodeInfo struct {
	Command string `json:"command"`
}

GetNodeInfo 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 GetSnapshot

type GetSnapshot struct {
	Command string `json:"command"`
}

GetSnapshot 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 GetTrytes

type GetTrytes struct {
	Command string   `json:"command"`
	Hashes  []string `json:"hashes"`
}

GetTrytes struct

type GetTrytesReturn

type GetTrytesReturn struct {
	Trytes   []string `json:"trytes"`
	Duration int      `json:"duration"`
}

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

type RemoveNeighbors struct {
	Command string   `json:"removeNeighbors"`
	Uris    []string `json:"uris"`
}

RemoveNeighbors struct

type RemoveNeighborsReturn

type RemoveNeighborsReturn struct {
	RemovedNeighbors uint `json:"removedNeighbors"`
	Duration         int  `json:"duration"`
}

RemoveNeighborsReturn struct

type StoreTransactions

type StoreTransactions struct {
	Command string   `json:"command"`
	Trytes  []string `json:"trytes"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL