grpc

package
v0.0.0-...-b4740bb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(text, target, podIp string, latency time.Duration, failureRate float64) (*Server, error)

func (*Server) Greeting

func (s *Server) Greeting(ctx context.Context, req *proto.SvcRequest) (*proto.SvcResponse, error)

unary RPC sends back 1 hello world response

func (*Server) StreamGreeting

func (s *Server) StreamGreeting(req *proto.SvcRequest, stream proto.Hello_StreamGreetingServer) error

streaming RPC sends back 5 hello world responses

Jump to

Keyboard shortcuts

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