handler

package
v0.0.0-...-ea873bd Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrBadRequest

func ErrBadRequest(s string) error

Types

type WebsiteRequest

type WebsiteRequest struct {
	URL string `json:"url"`
}

func (WebsiteRequest) Bind

func (w WebsiteRequest) Bind(r *http.Request) error

type WebsiteStatusHandler

type WebsiteStatusHandler struct {
	// contains filtered or unexported fields
}

func NewWebsiteStatusHandler

func NewWebsiteStatusHandler(service domain.WebsiteStatusService) *WebsiteStatusHandler

func (*WebsiteStatusHandler) CreateWebsite

func (h *WebsiteStatusHandler) CreateWebsite(w http.ResponseWriter, r *http.Request)

func (*WebsiteStatusHandler) GetAllSites

func (h *WebsiteStatusHandler) GetAllSites(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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