Documentation ¶
Index ¶
- type DneroCliRPCServer
- type DneroCliRPCService
- func (t *DneroCliRPCService) IsKeyUnlocked(args *IsKeyUnlockedArgs, result *IsKeyUnlockedResult) (err error)
- func (t *DneroCliRPCService) ListKeys(args *ListKeysArgs, result *ListKeysResult) (err error)
- func (t *DneroCliRPCService) LockKey(args *LockKeyArgs, result *LockKeyResult) (err error)
- func (t *DneroCliRPCService) NewKey(args *NewKeyArgs, result *NewKeyResult) (err error)
- func (t *DneroCliRPCService) Send(args *SendArgs, result *SendResult) (err error)
- func (t *DneroCliRPCService) UnlockKey(args *UnlockKeyArgs, result *UnlockKeyResult) (err error)
- type IsKeyUnlockedArgs
- type IsKeyUnlockedResult
- type ListKeysArgs
- type ListKeysResult
- type LockKeyArgs
- type LockKeyResult
- type NewKeyArgs
- type NewKeyResult
- type SendArgs
- type SendResult
- type UnlockKeyArgs
- type UnlockKeyResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DneroCliRPCServer ¶
type DneroCliRPCServer struct { *DneroCliRPCService // contains filtered or unexported fields }
DneroCliRPCServer is an instance of the CLI RPC service.
func NewDneroCliRPCServer ¶
func NewDneroCliRPCServer(cfgPath, port string) (*DneroCliRPCServer, error)
NewDneroCliRPCServer creates a new instance of DneroRPCServer.
func (*DneroCliRPCServer) Start ¶
func (t *DneroCliRPCServer) Start(ctx context.Context)
Start creates the main goroutine.
func (*DneroCliRPCServer) Stop ¶
func (t *DneroCliRPCServer) Stop()
Stop notifies all goroutines to stop without blocking.
func (*DneroCliRPCServer) Wait ¶
func (t *DneroCliRPCServer) Wait()
Wait blocks until all goroutines stop.
type DneroCliRPCService ¶
type DneroCliRPCService struct {
// contains filtered or unexported fields
}
func (*DneroCliRPCService) IsKeyUnlocked ¶
func (t *DneroCliRPCService) IsKeyUnlocked(args *IsKeyUnlockedArgs, result *IsKeyUnlockedResult) (err error)
func (*DneroCliRPCService) ListKeys ¶
func (t *DneroCliRPCService) ListKeys(args *ListKeysArgs, result *ListKeysResult) (err error)
func (*DneroCliRPCService) LockKey ¶
func (t *DneroCliRPCService) LockKey(args *LockKeyArgs, result *LockKeyResult) (err error)
func (*DneroCliRPCService) NewKey ¶
func (t *DneroCliRPCService) NewKey(args *NewKeyArgs, result *NewKeyResult) (err error)
func (*DneroCliRPCService) Send ¶
func (t *DneroCliRPCService) Send(args *SendArgs, result *SendResult) (err error)
func (*DneroCliRPCService) UnlockKey ¶
func (t *DneroCliRPCService) UnlockKey(args *UnlockKeyArgs, result *UnlockKeyResult) (err error)
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 UnlockKeyArgs ¶
type UnlockKeyResult ¶
type UnlockKeyResult struct {
Unlocked bool `json:"unlocked"`
}
Click to show internal directories.
Click to hide internal directories.