connections

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawConnect

func RawConnect(nodeConfig *config.NodeConfig) (*grpc.ClientConn, error)

RawConnect establishes gRPC connection with the target URL, omitting the chain context check. This is based on oasis-sdk `ConnectNoVerify()` function, but returns a raw gRPC connection instead of the oasis-sdk `Connection` wrapper.

func SDKConnect

func SDKConnect(ctx context.Context, chainContext string, nodeConfig *config.NodeConfig, fastStartup bool) (connection.Connection, error)

SDKConnect creates an Oasis SDK Connection to a node running the current version of oasis-node.

Types

type GrpcConn added in v0.1.22

type GrpcConn interface {
	Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) error
	Close() error
}

Minimal interface for gRPC connections.

type LazyGrpcConn added in v0.1.21

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

func NewLazyGrpcConn added in v0.1.22

func NewLazyGrpcConn(nodeConfig config.NodeConfig) *LazyGrpcConn

func (*LazyGrpcConn) Close added in v0.1.21

func (c *LazyGrpcConn) Close() error

func (*LazyGrpcConn) Invoke added in v0.1.21

func (c *LazyGrpcConn) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) error

Jump to

Keyboard shortcuts

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