grpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcHandler

type GrpcHandler struct {
	Srv *grpc.Server
	Cfg GrpcSrvCfg
}

[SrvHndlr] for gRPC services

func NewGrpcHandler

func NewGrpcHandler(cfg GrpcSrvCfg) *GrpcHandler

Create a new [GrpcHndlr]

func (*GrpcHandler) ForceKill

func (s *GrpcHandler) ForceKill()

func (*GrpcHandler) Serve

func (s *GrpcHandler) Serve(wg *sync.WaitGroup, stopch <-chan struct{}, errch chan<- error)

Implementation for the [SrvHdlr] interface

type GrpcSrvCfg

type GrpcSrvCfg struct {
	BindAddr string
	Port     uint16
}

Jump to

Keyboard shortcuts

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