proxy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppProxy

type AppProxy interface {
	SubmitCh() chan []byte
	CommitBlock(block hashgraph.Block) ([]byte, error)
	GetSnapshot(blockIndex int) ([]byte, error)
	Restore(snapshot []byte) error
}

type BabbleProxy

type BabbleProxy interface {
	CommitCh() chan hashgraph.Block
	SnapshotRequestCh() chan int
	RestoreCh() chan []byte
	SubmitTx(tx []byte) error
}

type DummySocketClient

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

func NewDummySocketClient

func NewDummySocketClient(clientAddr string, nodeAddr string, logger *logrus.Logger) (*DummySocketClient, error)

func (*DummySocketClient) Run

func (c *DummySocketClient) Run()

func (*DummySocketClient) SubmitTx

func (c *DummySocketClient) SubmitTx(tx []byte) error

type State

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

func (*State) CommitBlock

func (a *State) CommitBlock(block hashgraph.Block) ([]byte, error)

func (*State) GetSnapshot

func (a *State) GetSnapshot(blockIndex int) ([]byte, error)

func (*State) Restore

func (a *State) Restore(snapshot []byte) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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