rpc

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGRPCServer

func RunGRPCServer(ctx context.Context, cfg config.ConfYaml) 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(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