Documentation
¶
Overview ¶
Package tool holds the Hertz handlers of the admin tools: the system log tail, the version, IP geolocation and the server restart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSystemLogHandler ¶
func GetSystemLogHandler(service platform.Service) app.HandlerFunc
GetSystemLogHandler documents Get System Log.
@Summary Get System Log @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.LogResponse} @Router /v1/admin/tool/log [get]
func GetVersionHandler ¶
func GetVersionHandler(service platform.Service) app.HandlerFunc
GetVersionHandler documents Get Version.
@Summary Get Version @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.VersionResponse} @Router /v1/admin/tool/version [get]
func QueryIPLocationHandler ¶
func QueryIPLocationHandler(service platform.Service) app.HandlerFunc
QueryIPLocationHandler documents Query IP Location.
@Summary Query IP Location @Tags admin @Accept json @Produce json @Security BearerAuth @Param request query dto.QueryIPLocationRequest false "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.QueryIPLocationResponse} @Router /v1/admin/tool/ip/location [get]
func RestartSystemHandler ¶
func RestartSystemHandler(service platform.Service) app.HandlerFunc
RestartSystemHandler documents Restart System.
@Summary Restart System @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/tool/restart [post]
Types ¶
This section is empty.