package
2.2.4+incompatible
Repository: https://github.com/goadesign/examples.git
Documentation: pkg.go.dev
# Functions
AddCalcPath returns the URL path to the calc service add HTTP endpoint.
DecodeAddRequest returns a decoder for requests sent to the calc add endpoint.
EncodeAddResponse returns an encoder for responses returned by the calc add endpoint.
Mount configures the mux to serve the calc endpoints.
MountAddHandler configures the mux to serve the "calc" service "add" endpoint.
MountGenHTTPOpenapiJSON configures the mux to serve GET request made to "/swagger.json".
New instantiates HTTP handlers for all the calc service endpoints using the provided encoder and decoder.
NewAddHandler creates a HTTP handler which loads the HTTP request and calls the "calc" service "add" endpoint.
NewAddPayload builds a calc service add endpoint payload.
# Structs
MountPoint holds information about the mounted endpoints.
Server lists the calc 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.