Help us shape the future of Go! Take the 2026 Go Developer Survey

tool

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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