Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlanetController ¶
func NewPlanetController(planetRepo repositories.PlanetRepository, swapiRepo repositories.SwapiRepository) *planetController
Types ¶
type Controller ¶
type Controller struct {
PlanetsCtler PlanetController
}
func NewController ¶
func NewController(r *repositories.Repositories) *Controller
type PlanetController ¶
type PlanetController interface { GetPlanet(w http.ResponseWriter, r *http.Request) GetPlanets(w http.ResponseWriter, r *http.Request) CreatePlanet(w http.ResponseWriter, r *http.Request) DeletePlanet(w http.ResponseWriter, r *http.Request) }
Click to show internal directories.
Click to hide internal directories.