rpc

package
v0.0.0-...-3f3259a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 24 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClient

func InitClient(ctx context.Context, log logger.Logger, tracer trace.TracerProvider, monitor *monitoring.Monitoring) (*grpc.ClientConn, func(), error)

InitClient - set up a connection to the server.

Types

type Client

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

func SetClientConfig

func SetClientConfig(tracer trace.TracerProvider, monitor *monitoring.Monitoring, log logger.Logger) (*Client, error)

setConfig - set configuration

func (*Client) GetOptions

func (c *Client) GetOptions() []grpc.DialOption

GetOptions - return options for gRPC Client.

func (*Client) GetURI

func (c *Client) GetURI() string

type Server

type Server struct {
	Run      func()
	Server   *grpc.Server
	Endpoint string
}

func InitServer

func InitServer(ctx context.Context, log logger.Logger, tracer trace.TracerProvider, monitor *monitoring.Monitoring) (*Server, error)

InitServer - initialize gRPC server

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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