Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { MuxRouter *mux.Router Handler handler.Handler // contains filtered or unexported fields }
Route is a struct that implements the interface Router
func (*Route) FetchDataForGivenCountry ¶
func (r *Route) FetchDataForGivenCountry(writer http.ResponseWriter, request *http.Request)
func (*Route) InvokeRequest ¶
func (r *Route) InvokeRequest(request core.SwitchableAPIGatewayRequest) (*core.SwitchableAPIGatewayResponse, error)
type Router ¶
type Router interface {
InvokeRequest(core.SwitchableAPIGatewayRequest) (*core.SwitchableAPIGatewayResponse, error)
}
Router is an interface that provides methods to handle incoming requests
Click to show internal directories.
Click to hide internal directories.