handlers

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupImages

type CleanupImages struct {
	Usecase usecases.CleanupImages
}

func (*CleanupImages) ServeHTTP

func (h *CleanupImages) ServeHTTP(w http.ResponseWriter, req *http.Request)

type GetImage

type GetImage struct {
	Usecase usecases.GetImage
}

func (*GetImage) ServeHTTP

func (h *GetImage) ServeHTTP(w http.ResponseWriter, req *http.Request)

type GetWeather

type GetWeather struct {
	Usecase usecases.GetWeather
}

func (*GetWeather) ServeHTTP

func (h *GetWeather) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Handlers

type Handlers struct {
	GetWeather    GetWeather
	GetImage      GetImage
	PollWeathers  PollWeathers
	CleanupImages CleanupImages
	Setup         Setup
}

func (*Handlers) NewRouter

func (h *Handlers) NewRouter() http.Handler

type PollWeathers

type PollWeathers struct {
	Usecase usecases.PollWeathers
}

func (*PollWeathers) ServeHTTP

func (h *PollWeathers) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Setup

type Setup struct {
	Usecase usecases.Setup
}

func (*Setup) ServeHTTP

func (h *Setup) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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