Files
rpcx/serverplugin/registry_test.go

20 lines
238 B
Go

package serverplugin
import "context"
type Args struct {
A int
B int
}
type Reply struct {
C int
}
type Arith int
func (t *Arith) Mul(ctx context.Context, args *Args, reply *Reply) error {
reply.C = args.A * args.B
return nil
}