Documentation ¶
Index ¶
- type IsKeyUnlockedArgs
- type IsKeyUnlockedResult
- type ListKeysArgs
- type ListKeysResult
- type LockKeyArgs
- type LockKeyResult
- type NewKeyArgs
- type NewKeyResult
- type SendArgs
- type SendResult
- type ThetaCliRPCServer
- type ThetaCliRPCService
- func (t *ThetaCliRPCService) IsKeyUnlocked(args *IsKeyUnlockedArgs, result *IsKeyUnlockedResult) (err error)
- func (t *ThetaCliRPCService) ListKeys(args *ListKeysArgs, result *ListKeysResult) (err error)
- func (t *ThetaCliRPCService) LockKey(args *LockKeyArgs, result *LockKeyResult) (err error)
- func (t *ThetaCliRPCService) NewKey(args *NewKeyArgs, result *NewKeyResult) (err error)
- func (t *ThetaCliRPCService) Send(args *SendArgs, result *SendResult) (err error)
- func (t *ThetaCliRPCService) UnlockKey(args *UnlockKeyArgs, result *UnlockKeyResult) (err error)
- type UnlockKeyArgs
- type UnlockKeyResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsKeyUnlockedArgs ¶
type IsKeyUnlockedArgs struct {
Address string `json:"address"`
}
type IsKeyUnlockedResult ¶
type IsKeyUnlockedResult struct {
Unlocked bool `json:"unlocked"`
}
type ListKeysArgs ¶
type ListKeysArgs struct { }
type ListKeysResult ¶
type ListKeysResult struct {
Addresses []string `json:"addresses"`
}
type LockKeyArgs ¶
type LockKeyArgs struct {
Address string `json:"address"`
}
type LockKeyResult ¶
type LockKeyResult struct {
Unlocked bool `json:"unlocked"`
}
type NewKeyArgs ¶
type NewKeyArgs struct {
Password string `json:"password"`
}
type NewKeyResult ¶
type NewKeyResult struct {
Address string `json:"address"`
}
type SendResult ¶
type SendResult struct { TxHash string `json:"hash"` Block *core.BlockHeader `json:"block",rlp:"nil"` }
type ThetaCliRPCServer ¶
type ThetaCliRPCServer struct { *ThetaCliRPCService // contains filtered or unexported fields }
ThetaCliRPCServer is an instance of the CLI RPC service.
func NewThetaCliRPCServer ¶
func NewThetaCliRPCServer(cfgPath, port string) (*ThetaCliRPCServer, error)
NewThetaCliRPCServer creates a new instance of ThetaRPCServer.
func (*ThetaCliRPCServer) Start ¶
func (t *ThetaCliRPCServer) Start(ctx context.Context)
Start creates the main goroutine.
func (*ThetaCliRPCServer) Stop ¶
func (t *ThetaCliRPCServer) Stop()
Stop notifies all goroutines to stop without blocking.
func (*ThetaCliRPCServer) Wait ¶
func (t *ThetaCliRPCServer) Wait()
Wait blocks until all goroutines stop.
type ThetaCliRPCService ¶
type ThetaCliRPCService struct {
// contains filtered or unexported fields
}
func (*ThetaCliRPCService) IsKeyUnlocked ¶
func (t *ThetaCliRPCService) IsKeyUnlocked(args *IsKeyUnlockedArgs, result *IsKeyUnlockedResult) (err error)
func (*ThetaCliRPCService) ListKeys ¶
func (t *ThetaCliRPCService) ListKeys(args *ListKeysArgs, result *ListKeysResult) (err error)
func (*ThetaCliRPCService) LockKey ¶
func (t *ThetaCliRPCService) LockKey(args *LockKeyArgs, result *LockKeyResult) (err error)
func (*ThetaCliRPCService) NewKey ¶
func (t *ThetaCliRPCService) NewKey(args *NewKeyArgs, result *NewKeyResult) (err error)
func (*ThetaCliRPCService) Send ¶
func (t *ThetaCliRPCService) Send(args *SendArgs, result *SendResult) (err error)
func (*ThetaCliRPCService) UnlockKey ¶
func (t *ThetaCliRPCService) UnlockKey(args *UnlockKeyArgs, result *UnlockKeyResult) (err error)
type UnlockKeyArgs ¶
type UnlockKeyResult ¶
type UnlockKeyResult struct {
Unlocked bool `json:"unlocked"`
}
Click to show internal directories.
Click to hide internal directories.