rpc

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 9 Imported by: 2

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 added in v1.11.1

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
go/health command
go/send command

Jump to

Keyboard shortcuts

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