rpc

package
Version: v0.0.0-...-ad2c5a6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(address string) (*grpc.ClientConn, error)

Connect - connect to grpc Add grpc.WithBlock() and grpc.WithTimeout() to have dial to constantly try and establish connection

func ConnectTLS

func ConnectTLS(address string, tlsPath string) (*grpc.ClientConn, error)

ConnectTLS connects to server using TLS Certificate

func ConsensusClient

func ConsensusClient(address string) (*grpc.ClientConn,
	consensus.ClientBackend, error)

ConsensusClient - initiate new consensus client

func NodeControllerClient

func NodeControllerClient(address string) (*grpc.ClientConn,
	control.NodeController, error)

NodeControllerClient - initiate new registry client

func RegistryClient

func RegistryClient(address string) (*grpc.ClientConn,
	registry.Backend, error)

RegistryClient - initiate new registry client

func SchedulerClient

func SchedulerClient(address string) (*grpc.ClientConn, scheduler.Backend,
	error)

SchedulerClient - initiate new scheduler client

func SentryClient

func SentryClient(address string, tlsPath string) (*grpc.ClientConn,
	sentry.Backend, error)

SentryClient - initiate new sentry client

func StakingClient

func StakingClient(address string) (*grpc.ClientConn, staking.Backend, error)

StakingClient - initiate new staking client

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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