controllers

package
v0.0.0-...-0405c2d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 9 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

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