rpc

package
v0.0.0-...-c9d2d86 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: ISC Imports: 9 Imported by: 0

Documentation

Overview

Copyright (C) 2017, Zipper Team. All rights reserved.

This file is part of zipper

The zipper is free software: you can use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

The zipper is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ISC License for more details.

You should have received a copy of the ISC License along with this program. If not, see <https://opensource.org/licenses/isc>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(bc *blockchain.Blockchain) *rpc.Server

func StartServer

func StartServer(server *rpc.Server, option *config.RPCOption)

StartServer with Test instance as a service

Types

type HttpConn

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

func NewHttConn

func NewHttConn(in io.Reader, out io.Writer) *HttpConn

func (*HttpConn) Close

func (c *HttpConn) Close() error

func (*HttpConn) Read

func (c *HttpConn) Read(p []byte) (n int, err error)

func (*HttpConn) Write

func (c *HttpConn) Write(d []byte) (n int, err error)

type RPCLedger

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

func NewRPCLedger

func NewRPCLedger(bc *blockchain.Blockchain) *RPCLedger

func (*RPCLedger) GetChainHeight

func (rl *RPCLedger) GetChainHeight(ignore string, reply *uint32) error

type RPCTransaction

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

func NewRPCTransaction

func NewRPCTransaction(bc *blockchain.Blockchain) *RPCTransaction

func (*RPCTransaction) Broadcast

func (rt *RPCTransaction) Broadcast(txHex string, reply *string) error

Jump to

Keyboard shortcuts

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