httpserver

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Unlicense Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BindAPI

func BindAPI(h *server.Hertz, srv v1.TZFServiceHTTPServer)

BindAPI binds the API to the server. This function is called by the generated code.

func BindWebPage

func BindWebPage(h *server.Hertz, w *WebHandler)

func NewServer

func NewServer(cfg *config.Config, srv v1.TZFServiceHTTPServer, w *WebHandler) *server.Hertz

Types

type GetTimezoneInfoPageResponse

type GetTimezoneInfoPageResponse struct {
	Title string
	Items []*GetTimezoneInfoPageResponseItem
}

type GetTimezoneInfoPageResponseItem

type GetTimezoneInfoPageResponseItem struct {
	Name string
	URL  string
}

type GetTimezoneInfoRequest

type GetTimezoneInfoRequest struct {
	Name string  `query:"name"`
	Lng  float64 `query:"longitude"`
	Lat  float64 `query:"latitude"`
}

type WebHandler

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

func NewWebHandler

func NewWebHandler(tzfinder *finder.TZfinder) *WebHandler

func (*WebHandler) GetAllSupportTimezoneNamesPage

func (w *WebHandler) GetAllSupportTimezoneNamesPage(c context.Context, ctx *app.RequestContext)

func (*WebHandler) GetClickPage

func (w *WebHandler) GetClickPage(c context.Context, ctx *app.RequestContext)

func (*WebHandler) GetGeoJSONViewerForTimezone

func (w *WebHandler) GetGeoJSONViewerForTimezone(c context.Context, ctx *app.RequestContext)

func (*WebHandler) GetTimezoneInfoPage

func (w *WebHandler) GetTimezoneInfoPage(c context.Context, ctx *app.RequestContext)

func (*WebHandler) GetTimezoneShape

func (w *WebHandler) GetTimezoneShape(c context.Context, ctx *app.RequestContext)

func (*WebHandler) GetTimezonesInfoPage

func (w *WebHandler) GetTimezonesInfoPage(c context.Context, ctx *app.RequestContext)

func (*WebHandler) Index

func (w *WebHandler) Index(c context.Context, ctx *app.RequestContext)

Jump to

Keyboard shortcuts

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