Documentation ¶
Index ¶
- type APIHandler
- func (h *APIHandler) CreatePlanets(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) FindAllPlanets(w http.ResponseWriter, _ *http.Request)
- func (h *APIHandler) FindPlanetByID(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) FindPlanetByName(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) PlanetUpdate(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) RemovePlanets(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) SetMovieRefs(w http.ResponseWriter, r *http.Request)
- type HelloHandler
- type IHandler
- type Response
- type SwapiHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIHandler ¶
func (*APIHandler) CreatePlanets ¶
func (h *APIHandler) CreatePlanets(w http.ResponseWriter, r *http.Request)
func (*APIHandler) FindAllPlanets ¶
func (h *APIHandler) FindAllPlanets(w http.ResponseWriter, _ *http.Request)
func (*APIHandler) FindPlanetByID ¶
func (h *APIHandler) FindPlanetByID(w http.ResponseWriter, r *http.Request)
func (*APIHandler) FindPlanetByName ¶
func (h *APIHandler) FindPlanetByName(w http.ResponseWriter, r *http.Request)
func (*APIHandler) PlanetUpdate ¶
func (h *APIHandler) PlanetUpdate(w http.ResponseWriter, r *http.Request)
func (*APIHandler) RemovePlanets ¶
func (h *APIHandler) RemovePlanets(w http.ResponseWriter, r *http.Request)
func (*APIHandler) SetMovieRefs ¶
func (h *APIHandler) SetMovieRefs(w http.ResponseWriter, r *http.Request)
type HelloHandler ¶
type HelloHandler struct { Service *service.HelloService Logger *log.Logger }
func (*HelloHandler) SayHello ¶
func (h *HelloHandler) SayHello(w http.ResponseWriter, r *http.Request)
type IHandler ¶
type IHandler interface { service.IService FindAllPlanets(w http.ResponseWriter, _ *http.Request) FindPlanet(w http.ResponseWriter, r *http.Request) FindPlanetByID(w http.ResponseWriter, r *http.Request) CreatePlanets(w http.ResponseWriter, r *http.Request) SetUpdatedPlanetRefs(w http.ResponseWriter, r *http.Request) }
type SwapiHandler ¶
type SwapiHandler struct { *service.SwapiService Logger *log.Logger }
Click to show internal directories.
Click to hide internal directories.