package
2.2.4+incompatible
Repository: https://github.com/goadesign/examples.git
Documentation: pkg.go.dev

# Functions

DecodeDivideRequest returns a decoder for requests sent to the divider divide endpoint.
DecodeIntegerDivideRequest returns a decoder for requests sent to the divider integer_divide endpoint.
DivideDividerPath returns the URL path to the divider service divide HTTP endpoint.
EncodeDivideError returns an encoder for errors returned by the divide divider endpoint.
EncodeDivideResponse returns an encoder for responses returned by the divider divide endpoint.
EncodeIntegerDivideError returns an encoder for errors returned by the integer_divide divider endpoint.
EncodeIntegerDivideResponse returns an encoder for responses returned by the divider integer_divide endpoint.
IntegerDivideDividerPath returns the URL path to the divider service integer_divide HTTP endpoint.
Mount configures the mux to serve the divider endpoints.
MountDivideHandler configures the mux to serve the "divider" service "divide" endpoint.
MountIntegerDivideHandler configures the mux to serve the "divider" service "integer_divide" endpoint.
New instantiates HTTP handlers for all the divider service endpoints using the provided encoder and decoder.
NewDivideDivByZeroResponseBody builds the HTTP response body from the result of the "divide" endpoint of the "divider" service.
NewDivideFloatOperands builds a divider service divide endpoint payload.
NewDivideHandler creates a HTTP handler which loads the HTTP request and calls the "divider" service "divide" endpoint.
NewDivideTimeoutResponseBody builds the HTTP response body from the result of the "divide" endpoint of the "divider" service.
NewIntegerDivideDivByZeroResponseBody builds the HTTP response body from the result of the "integer_divide" endpoint of the "divider" service.
NewIntegerDivideHandler creates a HTTP handler which loads the HTTP request and calls the "divider" service "integer_divide" endpoint.
NewIntegerDivideHasRemainderResponseBody builds the HTTP response body from the result of the "integer_divide" endpoint of the "divider" service.
NewIntegerDivideIntOperands builds a divider service integer_divide endpoint payload.
NewIntegerDivideTimeoutResponseBody builds the HTTP response body from the result of the "integer_divide" endpoint of the "divider" service.

# Structs

DivideDivByZeroResponseBody is the type of the "divider" service "divide" endpoint HTTP response body for the "div_by_zero" error.
DivideTimeoutResponseBody is the type of the "divider" service "divide" endpoint HTTP response body for the "timeout" error.
IntegerDivideDivByZeroResponseBody is the type of the "divider" service "integer_divide" endpoint HTTP response body for the "div_by_zero" error.
IntegerDivideHasRemainderResponseBody is the type of the "divider" service "integer_divide" endpoint HTTP response body for the "has_remainder" error.
IntegerDivideTimeoutResponseBody is the type of the "divider" service "integer_divide" endpoint HTTP response body for the "timeout" error.
MountPoint holds information about the mounted endpoints.
Server lists the divider service endpoint HTTP handlers.

# Interfaces

ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.