http

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(chainID, remote string) (provider.Provider, error)

New creates a HTTP provider, which is using the rpcclient.HTTP client under the hood.

func NewWithClient

func NewWithClient(chainID string, client SignStatusClient) provider.Provider

NewWithClient allows you to provide custom SignStatusClient.

Types

type SignStatusClient

type SignStatusClient interface {
	rpcclient.SignClient
	rpcclient.StatusClient
	// Remote returns the remote network address in a string form.
	Remote() string
}

SignStatusClient combines a SignClient and StatusClient.

Jump to

Keyboard shortcuts

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