router

package
v0.0.0-...-e0e3a30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 6 Imported by: 0

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

type Router

type Router interface {
	InvokeRequest(core.SwitchableAPIGatewayRequest) (*core.SwitchableAPIGatewayResponse, error)
}

Router is an interface that provides methods to handle incoming requests

func NewRouter

func NewRouter(handler handler.Handler) Router

NewRouter is a constructor to create a Router object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL