rpc

package
v0.0.0-...-f79bcc6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 13 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 {
	Host       string `json:"host" yaml:"host"`
	Port       int    `json:"port" yaml:"port"`
	DebugModel bool   `json:"debugModel" yaml:"debugModel"`
}

type Server

type Server struct {
	Listen net.Listener
	// contains filtered or unexported fields
}

func New

func New(cfg *Config, bizCtx *biz.SampleBiz) (instance *Server, clean func(), err error)

func (*Server) GrpcLogger

func (s *Server) GrpcLogger(logger *zap.SugaredLogger) grpc.UnaryServerInterceptor

func (*Server) GrpcTrace

func (s *Server) GrpcTrace() grpc.UnaryServerInterceptor

func (*Server) Name

func (s *Server) Name() string

func (*Server) Run

func (s *Server) Run(ctx context.Context) (err error)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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