rpcexample

package
v0.0.0-...-f53f79a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Multiply

func Multiply(args Args, result *Result) error

stores product of args.A and args.B in result pointer

Types

type Args

type Args struct {
	A, B int
}

Holds arguments to be passed to service Arith in RPC call

type Arith

type Arith int

Representss service Arith with method Multiply

func (*Arith) Multiply

func (t *Arith) Multiply(args Args, result *Result) error

This procedure is invoked by rpc and calls rpcexample.Multiply which stores product of args.A and args.B in result pointer

type Result

type Result int

Result of RPC call is of this type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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