grpc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentName = "net/grpc"

Variables

This section is empty.

Functions

func OpenTracingServerInterceptor added in v0.2.0

func OpenTracingServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

func RecoverServerInterceptor added in v0.7.0

func RecoverServerInterceptor(logger tracelog.Logger) grpc.UnaryServerInterceptor

func SimpleErrorServerInterceptor added in v0.2.0

func SimpleErrorServerInterceptor() grpc.UnaryServerInterceptor

Types

type Server

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

func NewServer

func NewServer(port uint16) *Server

func NewServerWithListener added in v0.7.0

func NewServerWithListener(listener net.Listener) *Server

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) BuildServer added in v0.2.0

func (s *Server) BuildServer(tlsConfig *tls.Config, opts []grpc.ServerOption) (err error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) RegistryDesc

func (s *Server) RegistryDesc(services ...transport.Service)

func (*Server) Serve

func (s *Server) Serve() error

Jump to

Keyboard shortcuts

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