client

package
v0.0.0-...-b70bbfa Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcClient

type GrpcClient interface {
	GetConn() *grpc.ClientConn
	Close() error
}

GrpcClient интерфейс для работы с gRPC клиентом.

func NewGrpcClient

func NewGrpcClient(cfg *GrpcClientConfig) (GrpcClient, error)

NewGrpcClient создает новый gRPC клиент.

type GrpcClientConfig

type GrpcClientConfig struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

GrpcClientConfig конфигурация клиента gRPC.

Jump to

Keyboard shortcuts

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