Documentation ¶
Index ¶
- Constants
- func BuildContractEventSubscription(web3GolangHelper *web3helper.Web3GolangHelper, contractAddress string, ...) ethereum.Subscription
- func ErrorFromString(str string) error
- func GenerateAddressFromPlainPrivateKey(pk string) (common.Address, error)
- func GetEtcdConfig() *config.Config
- func GetSysInfo() string
- func HashSkein1024(data []byte) []byte
- func HashValue(value string) string
- func InitServer(octx context.Context, notify *chan struct{})
- func InitWeb3()
- func PrintNetworkStatus()
- func PrintSystemInfo(numCpu, usedCpu int)
- func PrintUserBalance(address string, balance int)
- func PrintUserBalance2(address string, balance int)
- func RunServer()
- func UpdateEtcdConf()
- type Args
- type Bit2EvmCommand
- type CLI
- type Command
- type Conf
- type CreateCommand
- type Crypto
- type DeployCommand
- type Etcd
- type Evm2BitCommand
- type InfoCommand
- type Node
- type NodeCommand
- type NodeInfo
- type Server
- type UploadCommand
Constants ¶
View Source
const ( Run = "run" UpdateEtcd = "update-config" )
Variables ¶
This section is empty.
Functions ¶
func BuildContractEventSubscription ¶
func BuildContractEventSubscription(web3GolangHelper *web3helper.Web3GolangHelper, contractAddress string, logs chan types.Log) ethereum.Subscription
func ErrorFromString ¶
func GetEtcdConfig ¶
func GetSysInfo ¶
func GetSysInfo() string
func HashSkein1024 ¶
func InitServer ¶
func PrintNetworkStatus ¶
func PrintNetworkStatus()
func PrintSystemInfo ¶
func PrintSystemInfo(numCpu, usedCpu int)
func PrintUserBalance ¶
func PrintUserBalance2 ¶
func UpdateEtcdConf ¶
func UpdateEtcdConf()
Types ¶
type Bit2EvmCommand ¶
type Bit2EvmCommand struct {
// contains filtered or unexported fields
}
func (*Bit2EvmCommand) ExecCommand ¶
func (c *Bit2EvmCommand) ExecCommand(ctx context.Context, args []string) error
type Conf ¶
type CreateCommand ¶
type CreateCommand struct {
// contains filtered or unexported fields
}
func (*CreateCommand) ExecCommand ¶
func (c *CreateCommand) ExecCommand(ctx context.Context, args []string) error
type DeployCommand ¶
type DeployCommand struct {
// contains filtered or unexported fields
}
func (*DeployCommand) ExecCommand ¶
func (c *DeployCommand) ExecCommand(ctx context.Context, args []string) error
type Evm2BitCommand ¶
type Evm2BitCommand struct {
// contains filtered or unexported fields
}
func (*Evm2BitCommand) ExecCommand ¶
func (c *Evm2BitCommand) ExecCommand(ctx context.Context, args []string) error
type InfoCommand ¶
type InfoCommand struct {
// contains filtered or unexported fields
}
func (*InfoCommand) ExecCommand ¶
func (c *InfoCommand) ExecCommand(ctx context.Context, args []string) error
type NodeCommand ¶
type NodeCommand struct {
// contains filtered or unexported fields
}
func (*NodeCommand) ExecCommand ¶
func (c *NodeCommand) ExecCommand(ctx context.Context, args []string) error
func (*NodeCommand) Run ¶
func (c *NodeCommand) Run() error
func (*NodeCommand) UpdateEtcd ¶
func (c *NodeCommand) UpdateEtcd()
type UploadCommand ¶
type UploadCommand struct {
// contains filtered or unexported fields
}
func (*UploadCommand) ExecCommand ¶
func (c *UploadCommand) ExecCommand(ctx context.Context, args []string) error
Click to show internal directories.
Click to hide internal directories.