Documentation
¶
Index ¶
Constants ¶
View Source
const ( RPCPort = ":50050" RPCAddress = "127.0.0.1:50050" GRPCPort = ":50051" GRPCAddress = "127.0.0.1:50051" )
Variables ¶
View Source
var GRPCCalClient pb.CalculatorClient
View Source
var RPCCalClient *rpc.Client
Functions ¶
func NewGRPCClient ¶
func NewGRPCClient()
func NewGRPCServer ¶
func NewRPCClient ¶
func NewRPCClient()
func NewRPCServer ¶
Types ¶
type GRPCCalServer ¶
type GRPCCalServer struct{}
func (*GRPCCalServer) Div ¶
func (s *GRPCCalServer) Div(ctx context.Context, in *pb.CalRequest) (*pb.DivResult, error)
func (*GRPCCalServer) Mult ¶
func (s *GRPCCalServer) Mult(ctx context.Context, in *pb.CalRequest) (*pb.MultResult, error)
type RDivResult ¶
Click to show internal directories.
Click to hide internal directories.