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
Click to show internal directories.
Click to hide internal directories.