rpc

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcHealthClient

func NewGrpcHealthClient(conn *grpc.ClientConn) core.Health

NewGrpcHealthClient returns a new grpc Client.

func RunGRPCServer

func RunGRPCServer(ctx context.Context, cfg *config.ConfYaml) error

RunGRPCServer run gorush grpc server

Types

type Server

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

Server is used to implement gorush grpc server.

func NewServer

func NewServer(cfg *config.ConfYaml) *Server

NewServer returns a new Server.

func (*Server) Check

Check implements `service Health`.

func (*Server) Send

Send implements helloworld.GreeterServer

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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