rpc

package
v0.0.0-...-03830f7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPRCServer

func NewPRCServer(db db.Service) pb.NYCabServer

NewPRCServer implementation

func Start

func Start(ctx context.Context, t *Server, lis net.Listener)

Start RPC listening service at given network listener Terminates when ctx.Done is received

Types

type Server

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

Server implement proto NYCabServer

func (*Server) DoGetCabPickupCount

func (r *Server) DoGetCabPickupCount(ctx context.Context, req *pb.GetCabPickupCountRequest) (*pb.GetCabPickupCountResponse, error)

DoGetCabPickupCount implementation

Jump to

Keyboard shortcuts

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