Documentation ¶
Index ¶
- Variables
- func BalanceToRaw(b types.Balance, unit string) (types.Balance, error)
- func IsGenesisBlock(block *types.StateBlock) bool
- func RawToBalance(b types.Balance, unit string) (types.Balance, error)
- type Service
- type ServiceLifecycle
- func (s *ServiceLifecycle) PostInit() bool
- func (s *ServiceLifecycle) PostStart() bool
- func (s *ServiceLifecycle) PostStop() bool
- func (s *ServiceLifecycle) PreInit() bool
- func (s *ServiceLifecycle) PreStart() bool
- func (s *ServiceLifecycle) PreStop() bool
- func (s *ServiceLifecycle) State() int32
- func (s *ServiceLifecycle) Stopped() bool
- func (s *ServiceLifecycle) String() string
- type ServiceStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var (
QLCChainToken, _ = types.NewHash("45dd217cd9ff89f7b64ceda4886cc68dde9dfa47a8a422d165e2ce6f9a834fad")
GenesisAccountAddress, _ = types.HexToAddress("qlc_1t1uynkmrs597z4ns6ymppwt65baksgdjy1dnw483ubzm97oayyo38ertg44")
GenesisMintageBlock types.StateBlock
GenesisMintageHash types.Hash
QLCGenesisBlock types.StateBlock
QLCGenesisBlockHash types.Hash
)
Functions ¶
func BalanceToRaw ¶ added in v0.0.9
func IsGenesisBlock ¶ added in v0.0.9
func IsGenesisBlock(block *types.StateBlock) bool
IsGenesis check block is chain token genesis
Types ¶
type ServiceLifecycle ¶
type ServiceLifecycle struct {
Status int32 // ServiceStatus
}
func (*ServiceLifecycle) PostInit ¶
func (s *ServiceLifecycle) PostInit() bool
func (*ServiceLifecycle) PostStart ¶
func (s *ServiceLifecycle) PostStart() bool
func (*ServiceLifecycle) PostStop ¶
func (s *ServiceLifecycle) PostStop() bool
func (*ServiceLifecycle) PreInit ¶
func (s *ServiceLifecycle) PreInit() bool
func (*ServiceLifecycle) PreStart ¶
func (s *ServiceLifecycle) PreStart() bool
func (*ServiceLifecycle) PreStop ¶
func (s *ServiceLifecycle) PreStop() bool
func (*ServiceLifecycle) State ¶
func (s *ServiceLifecycle) State() int32
func (*ServiceLifecycle) Stopped ¶
func (s *ServiceLifecycle) Stopped() bool
func (*ServiceLifecycle) String ¶
func (s *ServiceLifecycle) String() string
type ServiceStatus ¶
type ServiceStatus int32
const ( Origin ServiceStatus = iota Initialing Inited Starting Started Stopping Stopped )
func (ServiceStatus) String ¶
func (i ServiceStatus) String() string
Click to show internal directories.
Click to hide internal directories.