standaloneproxy

package
v0.0.0-...-ddeaac2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: CC0-1.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Network string        `mapstructure:"network"`
	Address string        `mapstructure:"address"`
	Timeout time.Duration `mapstructure:"timeout"`
}

func GetConfig

func GetConfig() *Config

type RPCClient

type RPCClient interface {
	TraceTransaction(hash common.H256) (*response.CallFrame, error)
	EstimateGas(tx engine.TransactionForCall, number *common.BN64) (*common.Uint256, error)
	Close() error
}

type StandaloneProxy

type StandaloneProxy struct {
	Config *Config
	// contains filtered or unexported fields
}

func New

func New() (*StandaloneProxy, error)

func (*StandaloneProxy) Close

func (l *StandaloneProxy) Close() error

func (*StandaloneProxy) Post

func (*StandaloneProxy) Post(ctx context.Context, _ string, _ *any, _ *error) context.Context

Post implements endpoint.Processor.

func (*StandaloneProxy) Pre

func (l *StandaloneProxy) Pre(ctx context.Context, name string, _ *endpoint.Endpoint, response *any, args ...any) (context.Context, bool, error)

Pre implements endpoint.Processor.

Jump to

Keyboard shortcuts

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