providers

package
Version: v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPProvider

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

func NewHTTPProvider

func NewHTTPProvider(address string, timeout int32, secure bool) *HTTPProvider

func NewHTTPProviderWithClient

func NewHTTPProviderWithClient(address string, timeout int32, secure bool, client *http.Client) *HTTPProvider

func (HTTPProvider) Close

func (provider HTTPProvider) Close() error

func (HTTPProvider) SendRequest

func (provider HTTPProvider) SendRequest(v interface{}, method string, params interface{}) error

type IPCProvider

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

func NewIPCProvider

func NewIPCProvider(endpoint string) *IPCProvider

func (IPCProvider) Close

func (provider IPCProvider) Close() error

func (IPCProvider) SendRequest

func (provider IPCProvider) SendRequest(v interface{}, method string, params interface{}) error

type ProviderInterface

type ProviderInterface interface {
	SendRequest(v interface{}, method string, params interface{}) error
	Close() error
}

type WebSocketProvider

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

func NewWebSocketProvider

func NewWebSocketProvider(address string) *WebSocketProvider

func (WebSocketProvider) Close

func (provider WebSocketProvider) Close() error

func (WebSocketProvider) SendRequest

func (provider WebSocketProvider) SendRequest(v interface{}, method string, params interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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