node

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoHostSpecified = errors.New("no host specified")

Functions

This section is empty.

Types

type ErrorCode added in v0.15.1

type ErrorCode codes.Code

type Forwarder

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

func NewForwarder

func NewForwarder(log *zap.Logger, nodeConfigs network.GRPCConfig) (*Forwarder, error)

func (*Forwarder) CheckTx added in v0.15.0

func (*Forwarder) HealthCheck

func (n *Forwarder) HealthCheck(ctx context.Context) error

func (*Forwarder) LastBlockHeightAndHash added in v0.13.2

func (n *Forwarder) LastBlockHeightAndHash(ctx context.Context) (*api.LastBlockHeightResponse, int, error)

LastBlockHeightAndHash returns information about the last block from vega and the node it used to fetch it.

func (*Forwarder) SendTx

func (*Forwarder) Stop

func (n *Forwarder) Stop() error

type StatusError added in v0.15.1

type StatusError struct {
	Code    codes.Code
	Details []string
}

func (*StatusError) Error added in v0.15.1

func (e *StatusError) Error() string

Jump to

Keyboard shortcuts

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