grpcserver

package
v0.0.0-...-e0b4e73 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

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