Documentation ¶
Index ¶
- func CreatePayBill(user, miner string, usage int, priKey ed25519.PrivateKey) (*rpcMsg.UserCreditPay, error)
- type CmdHandler
- type Queue
- type WConfig
- type Wallet
- func (w *Wallet) Close()
- func (w *Wallet) Handle(handler CmdHandler)
- func (w *Wallet) Open(handler CmdHandler)
- func (w *Wallet) Receiving()
- func (w *Wallet) Send(req *rpcMsg.UDPReq) error
- func (w *Wallet) SendCmdAlive() error
- func (w *Wallet) SendCmdCheck() error
- func (w *Wallet) SendCmdClose()
- func (w *Wallet) SendCmdRecharge(no int) error
- func (w *Wallet) SendCmdRequireService() error
- func (w *Wallet) SendCmdTrail() error
- func (w *Wallet) TestConnection() error
- func (w *Wallet) VerifyRes(res *rpcMsg.UDPRes) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePayBill ¶
func CreatePayBill(user, miner string, usage int, priKey ed25519.PrivateKey) (*rpcMsg.UserCreditPay, error)
Types ¶
type CmdHandler ¶
type Wallet ¶
func (*Wallet) Handle ¶
func (w *Wallet) Handle(handler CmdHandler)
func (*Wallet) Open ¶
func (w *Wallet) Open(handler CmdHandler)
func (*Wallet) SendCmdAlive ¶
func (*Wallet) SendCmdCheck ¶
func (*Wallet) SendCmdClose ¶
func (w *Wallet) SendCmdClose()
func (*Wallet) SendCmdRecharge ¶
func (*Wallet) SendCmdRequireService ¶
func (*Wallet) SendCmdTrail ¶
func (*Wallet) TestConnection ¶
Click to show internal directories.
Click to hide internal directories.