website

package
v0.0.0-...-8132f3d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleWebsite

func HandleWebsite(w http.ResponseWriter, r *http.Request)

GET website handler

Types

type WebsiteRequest

type WebsiteRequest struct {
	Group data.WebsiteGroup `schema:"group"`
}

GET website request URL parameters

type WebsiteResponse

type WebsiteResponse struct {
	URL    string `json:"url"`
	Trivia string `json:"trivia"`
}

GET website request response body

func (*WebsiteResponse) FromWebsite

func (websiteResponse *WebsiteResponse) FromWebsite(website data.Website)

update website response using website

Jump to

Keyboard shortcuts

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