client

package
v0.0.0-...-004d278 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Math

type Math struct {
	RPC client.Client
}

func NewMathClient

func NewMathClient(rpcClient client.Client) *Math

func (*Math) Abs

func (c *Math) Abs(args math1.AbsArg) (float64, error)

func (*Math) Identity

func (c *Math) Identity(args int) (int, error)

func (*Math) Sum

func (c *Math) Sum(args math.SumArg) (math.SumReply, error)

type MathIFace

type MathIFace interface {
	Sum(args math.SumArg) (math.SumReply, error)

	Identity(args int) (int, error)

	Abs(args math1.AbsArg) (float64, error)
}

Jump to

Keyboard shortcuts

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