calculator

package
v1.20210104.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 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 Server

type Server struct {
	v1.CalculatorServer
}

Server is the server for the calculator.

func (Server) Add

func (Server) Add(_ context.Context, values *v1.Numbers) (*v1.Number, error)

Add adds a fixed set of numbers.

func (Server) AddStream

func (Server) AddStream(stream v1.Calculator_AddStreamServer) error

AddStream adds a stream of numbers.

func (Server) Divide

func (Server) Divide(_ context.Context, values *v1.Numbers) (*v1.Number, error)

Divide divides a fixed set of numbers.

func (Server) DivideStream

func (Server) DivideStream(stream v1.Calculator_DivideStreamServer) error

DivideStream divides a stream of numbers.

func (Server) Multiply

func (Server) Multiply(_ context.Context, values *v1.Numbers) (*v1.Number, error)

Multiply multiplies a fixed set of numbers.

func (Server) MultiplyStream

func (Server) MultiplyStream(stream v1.Calculator_MultiplyStreamServer) error

MultiplyStream multiplies a stream of numbers.

func (Server) Subtract

func (Server) Subtract(_ context.Context, values *v1.Numbers) (*v1.Number, error)

Subtract subtracts a fixed set of numbers.

func (Server) SubtractStream

func (Server) SubtractStream(stream v1.Calculator_SubtractStreamServer) error

SubtractStream subtracts a stream of numbers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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