xgrpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 6 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 {
	*grpc.Server
	Listener net.Listener
}

GRPCServer is a wrapper over grpc.Server that implements xservice.RunnerCloser interface.

func NewGRPCServer

func NewGRPCServer(addr string, options ...grpc.ServerOption) (*GRPCServer, error)

NewGRPCServer creates a new port for the GRPC server.

func (*GRPCServer) Close

func (g *GRPCServer) Close(_ context.Context) error

Close stops the GRPC server.

func (*GRPCServer) Run

func (g *GRPCServer) Run() error

Run starts the GRPC server.

Jump to

Keyboard shortcuts

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