rpc

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGRPCServer

func RunGRPCServer(ctx context.Context) error

RunGRPCServer run gorush grpc server

Types

type Health

type Health interface {
	// Check returns if server is healthy or not
	Check(c context.Context) (bool, error)
}

Health defines a health-check connection.

func NewGrpcHealthClient

func NewGrpcHealthClient(conn *grpc.ClientConn) Health

NewGrpcHealthClient returns a new grpc Client.

type Server

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

Server is used to implement gorush grpc server.

func NewServer

func NewServer() *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