test

package
v0.0.0-...-c10cd6e Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockHTTPProvider

func NewMockHTTPProvider() provider.Provider

NewMockHTTPProvider creates a HTTP provider mock

Types

type MockAPI

type MockAPI interface {
	Do(rpc.Request) (rpc.Response, error)
}

MockAPI ...

func NewMockMcAPI

func NewMockMcAPI(rpc rpc.RPC) MockAPI

NewMockMcAPI ...

func NewMockNetAPI

func NewMockNetAPI(rpc rpc.RPC) MockAPI

NewMockNetAPI ...

type MockHTTPProvider

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

MockHTTPProvider provides basic web3 interface

func (*MockHTTPProvider) GetRPCMethod

func (provider *MockHTTPProvider) GetRPCMethod() rpc.RPC

func (*MockHTTPProvider) IsConnected

func (provider *MockHTTPProvider) IsConnected() bool

IsConnected ...

func (*MockHTTPProvider) Send

func (provider *MockHTTPProvider) Send(request rpc.Request) (response rpc.Response, err error)

Send JSON RPC request through http client

type MockMcAPI

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

MockMcAPI ...

func (*MockMcAPI) Do

func (mc *MockMcAPI) Do(request rpc.Request) (response rpc.Response, err error)

Do ...

type MockNetAPI

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

MockNetAPI ...

func (*MockNetAPI) Do

func (net *MockNetAPI) Do(request rpc.Request) (response rpc.Response, err error)

Do ...

Jump to

Keyboard shortcuts

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