dashboard

package
v1.15.13 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package dashboard implements the admin console subdomain of the platform module: cross-domain reporting aggregates. Every foreign-domain access is a read through a port satisfied structurally by the legacy repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(ctx context.Context, key string) *redis.StringCmd
	Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd
}

Cache is the dashboard's snapshot cache; the redis client satisfies it structurally.

type Deps

type Deps struct {
	Orders  OrderStatsReader
	Users   UserStatsReader
	Tickets TicketStatsReader
	Nodes   NodeStatsReader
	Traffic TrafficStatsReader
	Logs    repository.LogRepo
	Cache   Cache
}

type NodeStatsReader

type NodeStatsReader = repository.NodeRepo

Read ports onto the billing, identity, support and network domains.

type OrderStatsReader

type OrderStatsReader = repository.OrderRepo

Read ports onto the billing, identity, support and network domains.

type QueryRevenueStatisticsLogic

type QueryRevenueStatisticsLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*QueryRevenueStatisticsLogic) QueryRevenueStatistics

func (l *QueryRevenueStatisticsLogic) QueryRevenueStatistics() (resp *dto.RevenueStatisticsResponse, err error)

type QueryServerTotalDataLogic

type QueryServerTotalDataLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*QueryServerTotalDataLogic) QueryServerTotalData

func (l *QueryServerTotalDataLogic) QueryServerTotalData() (resp *dto.ServerTotalDataResponse, err error)

type QueryTicketWaitReplyLogic

type QueryTicketWaitReplyLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*QueryTicketWaitReplyLogic) QueryTicketWaitReply

func (l *QueryTicketWaitReplyLogic) QueryTicketWaitReply() (resp *dto.TicketWaitRelpyResponse, err error)

type QueryUserStatisticsLogic

type QueryUserStatisticsLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func (*QueryUserStatisticsLogic) QueryUserStatistics

func (l *QueryUserStatisticsLogic) QueryUserStatistics() (resp *dto.UserStatisticsResponse, err error)

type Service

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

func NewService

func NewService(deps Deps) *Service

func (*Service) QueryRevenueStatistics

func (s *Service) QueryRevenueStatistics(ctx context.Context) (*dto.RevenueStatisticsResponse, error)

func (*Service) QueryServerTotalData

func (s *Service) QueryServerTotalData(ctx context.Context) (*dto.ServerTotalDataResponse, error)

func (*Service) QueryTicketWaitReply

func (s *Service) QueryTicketWaitReply(ctx context.Context) (*dto.TicketWaitRelpyResponse, error)

func (*Service) QueryUserStatistics

func (s *Service) QueryUserStatistics(ctx context.Context) (*dto.UserStatisticsResponse, error)

type TicketStatsReader

type TicketStatsReader = repository.TicketRepo

Read ports onto the billing, identity, support and network domains.

type TrafficStatsReader

type TrafficStatsReader = repository.TrafficRepo

Read ports onto the billing, identity, support and network domains.

type UserStatsReader

type UserStatsReader = repository.UserRepo

Read ports onto the billing, identity, support and network domains.

Jump to

Keyboard shortcuts

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