eth

package
v0.0.0-...-0001d10 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const StatusOK = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func DialContext

func DialContext(ctx context.Context, services *ClientServices, props *ClientProps) (*Client, error)

func NewClientWithDeps

func NewClientWithDeps(ctx context.Context, deps *ClientDeps) *Client

func (*Client) DeployService

func (*Client) ExecuteService

func (*Client) GetCode

func (*Client) GetExpiry

func (*Client) GetPublicKey

func (*Client) Name

func (c *Client) Name() string

func (*Client) Senders

func (c *Client) Senders() []common.Address

func (*Client) Stats

func (c *Client) Stats() stats.Metrics

func (*Client) SubscribeRequest

func (c *Client) SubscribeRequest(
	ctx context.Context,
	req backend.CreateSubscriptionRequest,
	ch chan<- interface{},
) errors.Err

func (*Client) UnsubscribeRequest

func (c *Client) UnsubscribeRequest(
	ctx context.Context,
	req backend.DestroySubscriptionRequest,
) errors.Err

type ClientDeps

type ClientDeps struct {
	Logger   log.Logger
	Client   eth.Client
	Executor *tx.Executor
}

type ClientProps

type ClientProps struct {
	PrivateKeys []*ecdsa.PrivateKey
	URL         string
}

type ClientServices

type ClientServices struct {
	Logger    log.Logger
	Callbacks callback.Calls
}

Jump to

Keyboard shortcuts

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