Documentation ¶
Overview ¶
Copyright (c) 2017-2018 The qitmeer developers Copyright (c) 2013-2016 The btcsuite developers Copyright (c) 2017-2018 The Decred developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Copyright (c) 2017-2018 The qitmeer developers ¶
Copyright (c) 2017-2018 The qitmeer developers ¶
Copyright (c) 2017-2018 The qitmeer developers
Index ¶
- func UseLogger(logger l.Logger)
- type Node
- type PrivateBlockChainAPI
- type PrivateLogAPI
- type PublicBlockChainAPI
- func (api *PublicBlockChainAPI) GetMeerDAGInfo() (interface{}, error)
- func (api *PublicBlockChainAPI) GetNetworkInfo() (interface{}, error)
- func (api *PublicBlockChainAPI) GetNodeInfo() (interface{}, error)
- func (api *PublicBlockChainAPI) GetRpcInfo() (interface{}, error)
- func (api *PublicBlockChainAPI) GetRpcModules() (interface{}, error)
- func (api *PublicBlockChainAPI) GetSubsidy() (interface{}, error)
- func (api *PublicBlockChainAPI) GetTimeInfo() (interface{}, error)
- type QitmeerFull
- func (qm *QitmeerFull) APIs() []api.API
- func (qm *QitmeerFull) GetAddressApi() *address.AddressApi
- func (qm *QitmeerFull) GetBlockChain() *blockchain.BlockChain
- func (qm *QitmeerFull) GetMiner() *miner.Miner
- func (qm *QitmeerFull) GetPeerServer() *p2p.Service
- func (qm *QitmeerFull) GetRpcServer() *rpc.RpcServer
- func (qm *QitmeerFull) GetTxManager() *tx.TxManager
- func (qm *QitmeerFull) GetVMService() *vm.Service
- func (qm *QitmeerFull) RegisterAccountService(cfg *config.Config) error
- func (qm *QitmeerFull) RegisterAmana() error
- func (qm *QitmeerFull) RegisterMinerService() error
- func (qm *QitmeerFull) RegisterNotifyMgr() error
- func (qm *QitmeerFull) RegisterP2PService() error
- func (qm *QitmeerFull) RegisterRpcService() error
- func (qm *QitmeerFull) RegisterTxManagerService() error
- type QitmeerLight
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { service.Service // config Config *config.Config Params *params.Params // database layer DB database.DB // contains filtered or unexported fields }
Node works as a server container for all service can be registered. such as p2p, rpc, ws etc.
func (*Node) RegisterService ¶
type PrivateBlockChainAPI ¶
type PrivateBlockChainAPI struct {
// contains filtered or unexported fields
}
func NewPrivateBlockChainAPI ¶
func NewPrivateBlockChainAPI(node *QitmeerFull) *PrivateBlockChainAPI
func (*PrivateBlockChainAPI) Banlist ¶
func (api *PrivateBlockChainAPI) Banlist() (interface{}, error)
Banlist
func (*PrivateBlockChainAPI) RemoveBan ¶
func (api *PrivateBlockChainAPI) RemoveBan(id *string) (interface{}, error)
RemoveBan
func (*PrivateBlockChainAPI) SetRpcMaxClients ¶
func (api *PrivateBlockChainAPI) SetRpcMaxClients(max int) (interface{}, error)
SetRpcMaxClients
func (*PrivateBlockChainAPI) Stop ¶
func (api *PrivateBlockChainAPI) Stop() (interface{}, error)
Stop the node
type PrivateLogAPI ¶
type PrivateLogAPI struct {
// contains filtered or unexported fields
}
func NewPrivateLogAPI ¶
func NewPrivateLogAPI(node *QitmeerFull) *PrivateLogAPI
func (*PrivateLogAPI) SetLogLevel ¶
func (api *PrivateLogAPI) SetLogLevel(level string) (interface{}, error)
set log
type PublicBlockChainAPI ¶
type PublicBlockChainAPI struct {
// contains filtered or unexported fields
}
func NewPublicBlockChainAPI ¶
func NewPublicBlockChainAPI(node *QitmeerFull) *PublicBlockChainAPI
func (*PublicBlockChainAPI) GetMeerDAGInfo ¶ added in v1.0.18
func (api *PublicBlockChainAPI) GetMeerDAGInfo() (interface{}, error)
func (*PublicBlockChainAPI) GetNetworkInfo ¶
func (api *PublicBlockChainAPI) GetNetworkInfo() (interface{}, error)
func (*PublicBlockChainAPI) GetNodeInfo ¶
func (api *PublicBlockChainAPI) GetNodeInfo() (interface{}, error)
Return the node info
func (*PublicBlockChainAPI) GetRpcInfo ¶
func (api *PublicBlockChainAPI) GetRpcInfo() (interface{}, error)
Return the RPC info
func (*PublicBlockChainAPI) GetRpcModules ¶
func (api *PublicBlockChainAPI) GetRpcModules() (interface{}, error)
func (*PublicBlockChainAPI) GetSubsidy ¶
func (api *PublicBlockChainAPI) GetSubsidy() (interface{}, error)
func (*PublicBlockChainAPI) GetTimeInfo ¶
func (api *PublicBlockChainAPI) GetTimeInfo() (interface{}, error)
type QitmeerFull ¶
QitmeerFull implements the qitmeer full node service.
func (*QitmeerFull) APIs ¶
func (qm *QitmeerFull) APIs() []api.API
func (*QitmeerFull) GetAddressApi ¶
func (qm *QitmeerFull) GetAddressApi() *address.AddressApi
return address api
func (*QitmeerFull) GetBlockChain ¶ added in v1.0.19
func (qm *QitmeerFull) GetBlockChain() *blockchain.BlockChain
func (*QitmeerFull) GetMiner ¶
func (qm *QitmeerFull) GetMiner() *miner.Miner
func (*QitmeerFull) GetPeerServer ¶
func (qm *QitmeerFull) GetPeerServer() *p2p.Service
return peer server
func (*QitmeerFull) GetRpcServer ¶
func (qm *QitmeerFull) GetRpcServer() *rpc.RpcServer
func (*QitmeerFull) GetTxManager ¶
func (qm *QitmeerFull) GetTxManager() *tx.TxManager
func (*QitmeerFull) GetVMService ¶
func (qm *QitmeerFull) GetVMService() *vm.Service
return vm service
func (*QitmeerFull) RegisterAccountService ¶
func (qm *QitmeerFull) RegisterAccountService(cfg *config.Config) error
func (*QitmeerFull) RegisterAmana ¶ added in v1.0.20
func (qm *QitmeerFull) RegisterAmana() error
func (*QitmeerFull) RegisterMinerService ¶
func (qm *QitmeerFull) RegisterMinerService() error
func (*QitmeerFull) RegisterNotifyMgr ¶
func (qm *QitmeerFull) RegisterNotifyMgr() error
func (*QitmeerFull) RegisterP2PService ¶
func (qm *QitmeerFull) RegisterP2PService() error
func (*QitmeerFull) RegisterRpcService ¶
func (qm *QitmeerFull) RegisterRpcService() error
func (*QitmeerFull) RegisterTxManagerService ¶
func (qm *QitmeerFull) RegisterTxManagerService() error
type QitmeerLight ¶
QitmeerLight implements the qitmeer light node service.
Click to show internal directories.
Click to hide internal directories.