rpcexample

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

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

Represents 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

type Result

type Result int

Result of RPC call is of this type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳