grpcserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServer

type GrpcServer struct {
	sync.WaitGroup
	// contains filtered or unexported fields
}

GrpcSErver is a wait group with a grpc server

func NewServer

func NewServer(socketPath string, services ...Service) (*GrpcServer, error)

func (*GrpcServer) Start

func (s *GrpcServer) Start()

func (*GrpcServer) Stop

func (s *GrpcServer) Stop()

type Service

type Service interface {
	// RegisterService exposes the service over the grpc server
	RegisterService(server *grpc.Server)
}

Jump to

Keyboard shortcuts

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