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

console

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: 5 Imported by: 0

Documentation

Overview

Package console holds the Hertz handlers of the admin console dashboard: the revenue, user, traffic and ticket figures the platform facade computes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryRevenueStatisticsHandler

func QueryRevenueStatisticsHandler(service Dashboard) app.HandlerFunc

QueryRevenueStatisticsHandler documents Query revenue statistics.

@Summary Query revenue statistics @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.RevenueStatisticsResponse} @Router /v1/admin/console/revenue [get]

func QueryServerTotalDataHandler

func QueryServerTotalDataHandler(service Dashboard) app.HandlerFunc

QueryServerTotalDataHandler documents Query server total data.

@Summary Query server total data @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.ServerTotalDataResponse} @Router /v1/admin/console/server [get]

func QueryTicketWaitReplyHandler

func QueryTicketWaitReplyHandler(service Dashboard) app.HandlerFunc

QueryTicketWaitReplyHandler documents Query ticket wait reply.

@Summary Query ticket wait reply @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.TicketWaitRelpyResponse} @Router /v1/admin/console/ticket [get]

func QueryUserStatisticsHandler

func QueryUserStatisticsHandler(service Dashboard) app.HandlerFunc

QueryUserStatisticsHandler documents Query user statistics.

@Summary Query user statistics @Tags admin @Produce json @Security BearerAuth @Success 200 {object} httpx.ResponseSuccessBean{data=dto.UserStatisticsResponse} @Router /v1/admin/console/user [get]

Types

type Dashboard added in v1.21.0

type Dashboard interface {
	QueryRevenueStatistics(ctx context.Context) (*dto.RevenueStatisticsResponse, error)
	QueryServerTotalData(ctx context.Context) (*dto.ServerTotalDataResponse, error)
	QueryTicketWaitReply(ctx context.Context) (*dto.TicketWaitRelpyResponse, error)
	QueryUserStatistics(ctx context.Context) (*dto.UserStatisticsResponse, error)
}

Dashboard is the part of the platform facade the console handlers call.

Jump to

Keyboard shortcuts

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