grpc

package
v0.0.0-...-d67a65b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 12 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 {
	GetGrpcConnection() *grpc.ClientConn
	Close() error
}

func NewGrpcClient

func NewGrpcClient(config *GrpcConfig) (GrpcClient, error)

type GrpcConfig

type GrpcConfig struct {
	Port        string `mapstructure:"port"`
	Host        string `mapstructure:"host"`
	Development bool   `mapstructure:"development"`
}

type GrpcServer

type GrpcServer struct {
	Grpc   *grpc.Server
	Config *GrpcConfig
	Log    logger.ILogger
}

func NewGrpcServer

func NewGrpcServer(log logger.ILogger, config *GrpcConfig) *GrpcServer

func (*GrpcServer) RunGrpcServer

func (s *GrpcServer) RunGrpcServer(ctx context.Context, configGrpc ...func(grpcServer *grpc.Server)) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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