grpc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientConnection

func ClientConnection(options *ClientConnectionOptions) (*grpc.ClientConn, error)

ClientConnection establishes a connection with a gRPC service and returns its connection.

This method provides a mechanism to a service to connect into several other gRPC services to access their APIs.

Types

type ClientConnectionOptions

type ClientConnectionOptions struct {
	ServiceName           service.Name
	Context               *mcontext.ServiceContext
	Connection            ConnectionOptions
	AlternativeConnection *ConnectionOptions
	Tracker               trackerApi.Tracker
}

ClientConnectionOptions gathers custom options to establish a connection with a gRPC client.

type ConnectionOptions

type ConnectionOptions struct {
	Host      string
	Namespace string
	Port      int32
}

Jump to

Keyboard shortcuts

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