grpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 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 Config

type Config struct {
	Bind string `long:"bind" default:"localhost:9090" description:"Addr:port for gRPC server"`
}

type Service

type Service struct {
	Server *go_grpc.Server
	Mux    *runtime.ServeMux
	// contains filtered or unexported fields
}

Server holds all gRPC server vars

func New

func New(cfg Config, logger *zap.Logger, tracer opentracing.Tracer) *Service

func (*Service) ListenAndServe

func (srv *Service) ListenAndServe() error

func (*Service) Shutdown

func (srv *Service) Shutdown()

Jump to

Keyboard shortcuts

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