rpc

package
v0.7.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2014 License: LGPL-2.1-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JSON jsonWrapper

Functions

func NewErrorResponse

func NewErrorResponse(msg string) error

func NewSuccessRes

func NewSuccessRes(object JsonResponse) string

Types

type BalanceRes

type BalanceRes struct {
	Balance string `json:"balance"`
	Address string `json:"address"`
}

type BlockResponse

type BlockResponse struct {
	JsonResponse
}

type ErrorResponse

type ErrorResponse struct {
	Error     bool   `json:"error"`
	ErrorText string `json:"errorText"`
}

type EthereumApi

type EthereumApi struct {
	// contains filtered or unexported fields
}

func (*EthereumApi) Create

func (p *EthereumApi) Create(args *NewTxArgs, reply *string) error

func (*EthereumApi) GetBalanceAt

func (p *EthereumApi) GetBalanceAt(args *GetBalanceArgs, reply *string) error

func (*EthereumApi) GetBlock

func (p *EthereumApi) GetBlock(args *GetBlockArgs, reply *string) error

func (*EthereumApi) GetCoinbase

func (p *EthereumApi) GetCoinbase(args *interface{}, reply *string) error

func (*EthereumApi) GetIsListening

func (p *EthereumApi) GetIsListening(args *interface{}, reply *string) error

func (*EthereumApi) GetIsMining

func (p *EthereumApi) GetIsMining(args *interface{}, reply *string) error

func (*EthereumApi) GetKey

func (p *EthereumApi) GetKey(args interface{}, reply *string) error

func (*EthereumApi) GetPeerCount

func (p *EthereumApi) GetPeerCount(args *interface{}, reply *string) error

func (*EthereumApi) GetStorageAt

func (p *EthereumApi) GetStorageAt(args *GetStorageArgs, reply *string) error

func (*EthereumApi) GetTxCountAt

func (p *EthereumApi) GetTxCountAt(args *GetTxCountArgs, reply *string) error

func (*EthereumApi) PushTx

func (p *EthereumApi) PushTx(args *PushTxArgs, reply *string) error

func (*EthereumApi) Test

func (p *EthereumApi) Test(args *GetBlockArgs, reply *string) error

func (*EthereumApi) Transact

func (p *EthereumApi) Transact(args *NewTxArgs, reply *string) error

type GetBalanceArgs

type GetBalanceArgs struct {
	Address string
}

type GetBlockArgs

type GetBlockArgs struct {
	BlockNumber int
	Hash        string
}

type GetCoinbaseRes

type GetCoinbaseRes struct {
	Coinbase string `json:"coinbase"`
}

type GetListeningRes

type GetListeningRes struct {
	IsListening bool `json:"isListening"`
}

type GetMiningRes

type GetMiningRes struct {
	IsMining bool `json:"isMining"`
}

type GetPeerCountRes

type GetPeerCountRes struct {
	PeerCount int `json:"peerCount"`
}

type GetStorageArgs

type GetStorageArgs struct {
	Address string
	Key     string
}

type GetStorageAtRes

type GetStorageAtRes struct {
	Key     string `json:"key"`
	Value   string `json:"value"`
	Address string `json:"address"`
}

type GetTxCountArgs

type GetTxCountArgs struct {
	Address string `json:"address"`
}

type GetTxCountRes

type GetTxCountRes struct {
	Nonce int `json:"nonce"`
}

type JsonArgs

type JsonArgs interface {
	// contains filtered or unexported methods
}

type JsonResponse

type JsonResponse interface {
}

type JsonRpcServer

type JsonRpcServer struct {
	// contains filtered or unexported fields
}

func NewJsonRpcServer

func NewJsonRpcServer(pipe *xeth.JSXEth, port int) (*JsonRpcServer, error)

func (*JsonRpcServer) Start

func (s *JsonRpcServer) Start()

func (*JsonRpcServer) Stop

func (s *JsonRpcServer) Stop()

type Message

type Message struct {
	Call string        `json:"call"`
	Args []interface{} `json:"args"`
	Id   int           `json:"_id"`
	Data interface{}   `json:"data"`
}

func (*Message) Arguments

func (self *Message) Arguments() *ethutil.Value

type NewTxArgs

type NewTxArgs struct {
	Sec       string
	Recipient string
	Value     string
	Gas       string
	GasPrice  string
	Init      string
	Body      string
}

type PushTxArgs

type PushTxArgs struct {
	Tx string
}

type SuccessRes

type SuccessRes struct {
	Error  bool         `json:"error"`
	Result JsonResponse `json:"result"`
}

type TestRes

type TestRes struct {
	JsonResponse `json:"-"`
	Answer       int `json:"answer"`
}

type TxResponse

type TxResponse struct {
	Hash string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL