grpc

package
v1.58.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v1.58.2

func NewServer(cache *cache.Cache, producer *nsq.Producer) api.GreeterServer

NewServer for gRPC.

func Register

func Register(lc fx.Lifecycle, params RegisterParams)

Register server.

Types

type RegisterParams

type RegisterParams struct {
	fx.In

	GRPCServer *grpc.Server
	HTTPServer *http.Server
	Config     *tgrpc.Config
	Logger     *zap.Logger
	Cache      *cache.Cache
	Producer   *nsq.Producer
}

RegisterParams for gRPC.

type Server added in v1.58.2

type Server struct {
	api.UnimplementedGreeterServer
}

Server for grpc.

func (*Server) SayHello added in v1.58.2

func (s *Server) SayHello(ctx context.Context, in *api.HelloRequest) (*api.HelloReply, error)

SayHello for greet.

Directories

Path Synopsis
cache
transport
nsq

Jump to

Keyboard shortcuts

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