handler

package
v0.0.0-...-e1ef45a Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIHandler

type APIHandler struct {
	service.IService
	Logger *log.Logger
}

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 Response

type Response struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

type SwapiHandler

type SwapiHandler struct {
	*service.SwapiService
	Logger *log.Logger
}

Jump to

Keyboard shortcuts

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