Documentation
¶
Index ¶
- func NewService(parameters Parameters, log log.Logger, validators validators.Manager, ...) (http.Handler, error)
- type Info
- func (i *Info) GetBlockchainID(_ *http.Request, args *apiinfo.GetBlockchainIDArgs, ...) error
- func (i *Info) GetNetworkID(_ *http.Request, _ *struct{}, reply *apiinfo.GetNetworkIDReply) error
- func (i *Info) GetNetworkName(_ *http.Request, _ *struct{}, reply *apiinfo.GetNetworkNameReply) error
- func (i *Info) GetNodeID(_ *http.Request, _ *struct{}, reply *apiinfo.GetNodeIDReply) error
- func (i *Info) GetNodeIP(_ *http.Request, _ *struct{}, reply *apiinfo.GetNodeIPReply) error
- func (i *Info) GetNodeVersion(_ *http.Request, _ *struct{}, reply *apiinfo.GetNodeVersionReply) error
- func (i *Info) GetTxFee(_ *http.Request, _ *struct{}, reply *apiinfo.GetTxFeeResponse) error
- func (i *Info) GetVMs(r *http.Request, _ *struct{}, reply *apiinfo.GetVMsReply) error
- func (i *Info) IsBootstrapped(_ *http.Request, args *apiinfo.IsBootstrappedArgs, ...) error
- func (i *Info) Lps(_ *http.Request, _ *struct{}, reply *apiinfo.LPsReply) error
- func (i *Info) Peers(_ *http.Request, args *apiinfo.PeersArgs, reply *apiinfo.PeersReply) error
- func (i *Info) Upgrades(_ *http.Request, _ *struct{}, reply *upgrade.Config) error
- func (i *Info) Uptime(_ *http.Request, _ *struct{}, reply *apiinfo.UptimeResponse) error
- type Parameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
Parameters
// contains filtered or unexported fields
}
Info is the API service for unprivileged info on a node
func (*Info) GetBlockchainID ¶
func (i *Info) GetBlockchainID(_ *http.Request, args *apiinfo.GetBlockchainIDArgs, reply *apiinfo.GetBlockchainIDReply) error
GetBlockchainID returns the blockchain ID that resolves the alias that was supplied
func (*Info) GetNetworkID ¶
GetNetworkID returns the network ID this node is running on
func (*Info) GetNetworkName ¶
func (i *Info) GetNetworkName(_ *http.Request, _ *struct{}, reply *apiinfo.GetNetworkNameReply) error
GetNetworkName returns the network name this node is running on
func (*Info) GetNodeVersion ¶
func (i *Info) GetNodeVersion(_ *http.Request, _ *struct{}, reply *apiinfo.GetNodeVersionReply) error
GetNodeVersion returns the version this node is running
func (*Info) IsBootstrapped ¶
func (i *Info) IsBootstrapped(_ *http.Request, args *apiinfo.IsBootstrappedArgs, reply *apiinfo.IsBootstrappedResponse) error
IsBootstrapped returns nil and sets [reply.IsBootstrapped] == true iff [args.Chain] exists and is done bootstrapping Returns an error if the chain doesn't exist
type Parameters ¶
Click to show internal directories.
Click to hide internal directories.