Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Calculator ¶
type Calculator int
Calculator represents the service available over the network.
func (*Calculator) Addition ¶
func (c *Calculator) Addition(rq *Request, rp *Response) error
Addition stands as an exported method that execute a sum operation over the request args.
func (*Calculator) Subtraction ¶
func (c *Calculator) Subtraction(rq *Request, rp *Response) error
Subtraction stands as an exported method that execute a subtraction operation over the request args.
type Operations ¶
type Operations interface { Addition(*Request, *Response) error Subtraction(*Request, *Response) error }
Operations stands for all the remote fuctions definition in the service.
Click to show internal directories.
Click to hide internal directories.