Documentation ¶
Index ¶
- func ReceiveBlock(sendBlock *types.StateBlock, account *types.Account, cc *context.ChainContext) (err error)
- func RegisterServices(cc *context.ChainContext) error
- type AutoReceiveService
- type ConsensusService
- type HttpService
- type LedgerService
- type LogService
- type Manager
- type MetricsService
- type MinerService
- type P2PService
- type PermissionService
- type PoVService
- type PrivacyService
- type RPCService
- type ResendBlockService
- type ResendTimes
- type WalletService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceiveBlock ¶ added in v1.3.0
func ReceiveBlock(sendBlock *types.StateBlock, account *types.Account, cc *context.ChainContext) (err error)
ReceiveBlock generate receive block
func RegisterServices ¶ added in v1.3.0
func RegisterServices(cc *context.ChainContext) error
RegisterServices register services to chain context
Types ¶
type AutoReceiveService ¶ added in v1.3.0
type AutoReceiveService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewAutoReceiveService ¶ added in v1.3.0
func NewAutoReceiveService(cfgFile string) *AutoReceiveService
func (*AutoReceiveService) Init ¶ added in v1.3.0
func (as *AutoReceiveService) Init() error
func (*AutoReceiveService) Start ¶ added in v1.3.0
func (as *AutoReceiveService) Start() error
func (*AutoReceiveService) Status ¶ added in v1.3.0
func (as *AutoReceiveService) Status() int32
func (*AutoReceiveService) Stop ¶ added in v1.3.0
func (as *AutoReceiveService) Stop() error
type ConsensusService ¶ added in v1.3.0
type ConsensusService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewConsensusService ¶ added in v1.3.0
func NewConsensusService(cfgFile string) *ConsensusService
func (*ConsensusService) Init ¶ added in v1.3.0
func (cs *ConsensusService) Init() error
func (*ConsensusService) RpcCall ¶ added in v1.4.0
func (cs *ConsensusService) RpcCall(kind uint, in, out interface{})
func (*ConsensusService) Start ¶ added in v1.3.0
func (cs *ConsensusService) Start() error
func (*ConsensusService) Status ¶ added in v1.3.0
func (cs *ConsensusService) Status() int32
func (*ConsensusService) Stop ¶ added in v1.3.0
func (cs *ConsensusService) Stop() error
type HttpService ¶ added in v1.4.0
type HttpService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewHttpService ¶ added in v1.4.0
func NewHttpService(cfgFile string) *HttpService
func (*HttpService) Init ¶ added in v1.4.0
func (hs *HttpService) Init() error
func (*HttpService) Start ¶ added in v1.4.0
func (hs *HttpService) Start() error
func (*HttpService) Status ¶ added in v1.4.0
func (hs *HttpService) Status() int32
func (*HttpService) Stop ¶ added in v1.4.0
func (hs *HttpService) Stop() error
type LedgerService ¶ added in v1.3.0
type LedgerService struct { common.ServiceLifecycle Ledger *ledger.Ledger // contains filtered or unexported fields }
func NewLedgerService ¶ added in v1.3.0
func NewLedgerService(cfgFile string) *LedgerService
func (*LedgerService) Init ¶ added in v1.3.0
func (ls *LedgerService) Init() error
func (*LedgerService) Start ¶ added in v1.3.0
func (ls *LedgerService) Start() error
func (*LedgerService) Status ¶ added in v1.3.0
func (ls *LedgerService) Status() int32
func (*LedgerService) Stop ¶ added in v1.3.0
func (ls *LedgerService) Stop() error
type LogService ¶ added in v1.3.0
type LogService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewLogService ¶ added in v1.3.0
func NewLogService(cfgFile string) *LogService
func (*LogService) Init ¶ added in v1.3.0
func (ls *LogService) Init() error
func (*LogService) Start ¶ added in v1.3.0
func (ls *LogService) Start() error
func (*LogService) Status ¶ added in v1.3.0
func (ls *LogService) Status() int32
func (*LogService) Stop ¶ added in v1.3.0
func (ls *LogService) Stop() error
type Manager ¶ added in v1.3.0
type Manager struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewChainManageService ¶ added in v1.3.0
type MetricsService ¶ added in v1.3.0
type MetricsService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewMetricsService ¶ added in v1.3.0
func NewMetricsService(cfgFile string) *MetricsService
func (*MetricsService) Init ¶ added in v1.3.0
func (m *MetricsService) Init() error
func (*MetricsService) Start ¶ added in v1.3.0
func (m *MetricsService) Start() error
func (*MetricsService) Status ¶ added in v1.3.0
func (m *MetricsService) Status() int32
func (*MetricsService) Stop ¶ added in v1.3.0
func (m *MetricsService) Stop() error
type MinerService ¶ added in v1.3.0
type MinerService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewMinerService ¶ added in v1.3.0
func NewMinerService(cfgFile string, povEngine *pov.PoVEngine) *MinerService
func (*MinerService) GetMiner ¶ added in v1.3.0
func (ms *MinerService) GetMiner() *miner.Miner
func (*MinerService) Init ¶ added in v1.3.0
func (ms *MinerService) Init() error
func (*MinerService) Start ¶ added in v1.3.0
func (ms *MinerService) Start() error
func (*MinerService) Status ¶ added in v1.3.0
func (ms *MinerService) Status() int32
func (*MinerService) Stop ¶ added in v1.3.0
func (ms *MinerService) Stop() error
type P2PService ¶ added in v1.3.0
type P2PService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewP2PService ¶ added in v1.3.0
func NewP2PService(cfgFile string) (*P2PService, error)
func (*P2PService) Init ¶ added in v1.3.0
func (p *P2PService) Init() error
func (*P2PService) Node ¶ added in v1.3.0
func (p *P2PService) Node() *p2p.QlcService
func (*P2PService) Start ¶ added in v1.3.0
func (p *P2PService) Start() error
func (*P2PService) Status ¶ added in v1.3.0
func (p *P2PService) Status() int32
func (*P2PService) Stop ¶ added in v1.3.0
func (p *P2PService) Stop() error
type PermissionService ¶ added in v1.4.0
type PermissionService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewPermissionService ¶ added in v1.4.0
func NewPermissionService(cfgFile string) *PermissionService
func (*PermissionService) Init ¶ added in v1.4.0
func (ps *PermissionService) Init() error
func (*PermissionService) Start ¶ added in v1.4.0
func (ps *PermissionService) Start() error
func (*PermissionService) Status ¶ added in v1.4.0
func (ps *PermissionService) Status() int32
func (*PermissionService) Stop ¶ added in v1.4.0
func (ps *PermissionService) Stop() error
type PoVService ¶ added in v1.3.0
type PoVService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewPoVService ¶ added in v1.3.0
func NewPoVService(cfgFile string) *PoVService
func (*PoVService) GetPoVEngine ¶ added in v1.3.0
func (pov *PoVService) GetPoVEngine() *pov.PoVEngine
func (*PoVService) Init ¶ added in v1.3.0
func (pov *PoVService) Init() error
func (*PoVService) Start ¶ added in v1.3.0
func (pov *PoVService) Start() error
func (*PoVService) Status ¶ added in v1.3.0
func (pov *PoVService) Status() int32
func (*PoVService) Stop ¶ added in v1.3.0
func (pov *PoVService) Stop() error
type PrivacyService ¶ added in v1.4.0
type PrivacyService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewPrivacyService ¶ added in v1.4.0
func NewPrivacyService(cfgFile string) *PrivacyService
func (*PrivacyService) Init ¶ added in v1.4.0
func (s *PrivacyService) Init() error
func (*PrivacyService) Start ¶ added in v1.4.0
func (s *PrivacyService) Start() error
func (*PrivacyService) Status ¶ added in v1.4.0
func (s *PrivacyService) Status() int32
func (*PrivacyService) Stop ¶ added in v1.4.0
func (s *PrivacyService) Stop() error
type RPCService ¶ added in v1.3.0
type RPCService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewRPCService ¶ added in v1.3.0
func NewRPCService(cfgFile string) (*RPCService, error)
func (*RPCService) Init ¶ added in v1.3.0
func (rs *RPCService) Init() error
func (*RPCService) RPC ¶ added in v1.3.0
func (rs *RPCService) RPC() *rpc.RPC
func (*RPCService) Start ¶ added in v1.3.0
func (rs *RPCService) Start() error
func (*RPCService) Status ¶ added in v1.3.0
func (rs *RPCService) Status() int32
func (*RPCService) Stop ¶ added in v1.3.0
func (rs *RPCService) Stop() error
type ResendBlockService ¶ added in v1.3.0
type ResendBlockService struct { common.ServiceLifecycle // contains filtered or unexported fields }
func NewResendBlockService ¶ added in v1.3.0
func NewResendBlockService(cfgFile string) *ResendBlockService
func (*ResendBlockService) Init ¶ added in v1.3.0
func (rb *ResendBlockService) Init() error
func (*ResendBlockService) Start ¶ added in v1.3.0
func (rb *ResendBlockService) Start() error
func (*ResendBlockService) Status ¶ added in v1.3.0
func (rb *ResendBlockService) Status() int32
func (*ResendBlockService) Stop ¶ added in v1.3.0
func (rb *ResendBlockService) Stop() error
type ResendTimes ¶ added in v1.3.0
type ResendTimes struct {
// contains filtered or unexported fields
}
type WalletService ¶ added in v1.3.0
type WalletService struct { common.ServiceLifecycle Wallet *wallet.WalletStore }
func NewWalletService ¶ added in v1.3.0
func NewWalletService(cfgFile string) *WalletService
func (*WalletService) Init ¶ added in v1.3.0
func (ws *WalletService) Init() error
func (*WalletService) Start ¶ added in v1.3.0
func (ws *WalletService) Start() error
func (*WalletService) Status ¶ added in v1.3.0
func (ws *WalletService) Status() int32
func (*WalletService) Stop ¶ added in v1.3.0
func (ws *WalletService) Stop() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.