rpcgw

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGateway

func NewGateway(cliGW *cligw.Gateway, url string) ports.RPCGateway

Types

type Gateway

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

func (*Gateway) CallFor

func (gateway *Gateway) CallFor(method enums.RPCMethod, params ...interface{}) (result any, err error)

CallFor executes an RPC method and returns the result or an error. The function sends an RPC request using the specified method and params, waits for the response, and handles timeouts.

Jump to

Keyboard shortcuts

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