ship

package
v0.1.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Abi *chain.Abi

	Error  chan error
	Ready  chan *chain.Abi
	Blocks chan *types.GetBlocksResult
	Status chan *types.GetStatusResult
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(address string, port int) *Connection

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Open

func (c *Connection) Open() error

func (*Connection) ReadResult

func (c *Connection) ReadResult(msg []byte) (string, map[string]interface{}, error)

func (*Connection) SendAckBlocksRequest

func (c *Connection) SendAckBlocksRequest(request *types.GetBlocksAckRequest) error

func (*Connection) SendBlocksRequest

func (c *Connection) SendBlocksRequest(request *types.GetBlocksRequest) error

func (*Connection) SendRequest

func (c *Connection) SendRequest(typeName string, body map[string]interface{}) error

func (*Connection) SendStatusRequest

func (c *Connection) SendStatusRequest() error

Jump to

Keyboard shortcuts

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