Documentation ¶
Index ¶
- Variables
- func BindAPI(h *server.Hertz, srv v1.TZFServiceHTTPServer)
- func BindWebPage(h *server.Hertz, w *WebHandler)
- func NewServer(cfg *config.Config, srv v1.TZFServiceHTTPServer, w *WebHandler) *server.Hertz
- type GetTimezoneInfoPageResponse
- type GetTimezoneInfoPageResponseItem
- type GetTimezoneInfoRequest
- type WebHandler
- func (w *WebHandler) GetAllSupportTimezoneNamesPage(c context.Context, ctx *app.RequestContext)
- func (w *WebHandler) GetClickPage(c context.Context, ctx *app.RequestContext)
- func (w *WebHandler) GetGeoJSONViewerForTimezone(c context.Context, ctx *app.RequestContext)
- func (w *WebHandler) GetTimezoneInfoPage(c context.Context, ctx *app.RequestContext)
- func (w *WebHandler) GetTimezoneShape(c context.Context, ctx *app.RequestContext)
- func (w *WebHandler) GetTimezonesInfoPage(c context.Context, ctx *app.RequestContext)
- func (w *WebHandler) Index(c context.Context, ctx *app.RequestContext)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewServer, NewWebHandler)
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 GetTimezoneInfoRequest ¶
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)
Click to show internal directories.
Click to hide internal directories.