Documentation ¶
Index ¶
- func AddCmd(rootCmd *cobra.Command)
- func AddRPC(s types.RPCServer)
- func HasExec(name string) bool
- func InitExec(sub map[string][]byte)
- func InitWallet(wallet wcom.WalletOperate, sub map[string][]byte)
- func Register(p Plugin)
- type Plugin
- type PluginBase
- func (p *PluginBase) AddCmd(rootCmd *cobra.Command)
- func (p *PluginBase) AddRPC(c types.RPCServer)
- func (p *PluginBase) GetExecutorName() string
- func (p *PluginBase) GetName() string
- func (p *PluginBase) InitExec(sub map[string][]byte)
- func (p *PluginBase) InitWallet(walletBiz wcom.WalletOperate, sub map[string][]byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWallet ¶
func InitWallet(wallet wcom.WalletOperate, sub map[string][]byte)
Types ¶
type PluginBase ¶
type PluginBase struct { Name string ExecName string RPC func(name string, s types.RPCServer) Exec func(name string, sub []byte) Wallet func(walletBiz wcom.WalletOperate, sub []byte) Cmd func() *cobra.Command }
func (*PluginBase) AddCmd ¶
func (p *PluginBase) AddCmd(rootCmd *cobra.Command)
func (*PluginBase) AddRPC ¶
func (p *PluginBase) AddRPC(c types.RPCServer)
func (*PluginBase) GetExecutorName ¶
func (p *PluginBase) GetExecutorName() string
func (*PluginBase) GetName ¶
func (p *PluginBase) GetName() string
func (*PluginBase) InitExec ¶
func (p *PluginBase) InitExec(sub map[string][]byte)
func (*PluginBase) InitWallet ¶
func (p *PluginBase) InitWallet(walletBiz wcom.WalletOperate, sub map[string][]byte)
Click to show internal directories.
Click to hide internal directories.