Documentation ¶
Index ¶
- type Server
- func (Server) Add(_ context.Context, values *v1.Numbers) (*v1.Number, error)
- func (Server) AddStream(stream v1.Calculator_AddStreamServer) error
- func (Server) Divide(_ context.Context, values *v1.Numbers) (*v1.Number, error)
- func (Server) DivideStream(stream v1.Calculator_DivideStreamServer) error
- func (Server) Multiply(_ context.Context, values *v1.Numbers) (*v1.Number, error)
- func (Server) MultiplyStream(stream v1.Calculator_MultiplyStreamServer) error
- func (Server) Subtract(_ context.Context, values *v1.Numbers) (*v1.Number, error)
- func (Server) SubtractStream(stream v1.Calculator_SubtractStreamServer) error
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) AddStream ¶
func (Server) AddStream(stream v1.Calculator_AddStreamServer) error
AddStream adds a stream of numbers.
func (Server) DivideStream ¶
func (Server) DivideStream(stream v1.Calculator_DivideStreamServer) error
DivideStream divides a stream of numbers.
func (Server) MultiplyStream ¶
func (Server) MultiplyStream(stream v1.Calculator_MultiplyStreamServer) error
MultiplyStream multiplies a stream of numbers.
func (Server) SubtractStream ¶
func (Server) SubtractStream(stream v1.Calculator_SubtractStreamServer) error
SubtractStream subtracts a stream of numbers.
Click to show internal directories.
Click to hide internal directories.