grpc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGrpcServer

func DefaultGrpcServer(logger *zap.SugaredLogger, interceptors ...grpc.UnaryServerInterceptor) (*grpc.Server, *prometheus.Registry)

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewGrpcApp

func NewGrpcApp(port int, server *grpc.Server, reg *prometheus.Registry) *App

func (*App) Serve

func (s *App) Serve(ctx context.Context) error

func (*App) Shutdown

func (s *App) Shutdown(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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