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 ¶
- type Cache
- type Deps
- type NodeStatsReader
- type OrderStatsReader
- type QueryRevenueStatisticsLogic
- type QueryServerTotalDataLogic
- type QueryTicketWaitReplyLogic
- type QueryUserStatisticsLogic
- type Service
- func (s *Service) QueryRevenueStatistics(ctx context.Context) (*dto.RevenueStatisticsResponse, error)
- func (s *Service) QueryServerTotalData(ctx context.Context) (*dto.ServerTotalDataResponse, error)
- func (s *Service) QueryTicketWaitReply(ctx context.Context) (*dto.TicketWaitRelpyResponse, error)
- func (s *Service) QueryUserStatistics(ctx context.Context) (*dto.UserStatisticsResponse, error)
- type TicketStatsReader
- type TrafficStatsReader
- type UserStatsReader
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 ¶
func (*QueryRevenueStatisticsLogic) QueryRevenueStatistics ¶
func (l *QueryRevenueStatisticsLogic) QueryRevenueStatistics() (resp *dto.RevenueStatisticsResponse, err error)
type QueryServerTotalDataLogic ¶
func (*QueryServerTotalDataLogic) QueryServerTotalData ¶
func (l *QueryServerTotalDataLogic) QueryServerTotalData() (resp *dto.ServerTotalDataResponse, err error)
type QueryTicketWaitReplyLogic ¶
func (*QueryTicketWaitReplyLogic) QueryTicketWaitReply ¶
func (l *QueryTicketWaitReplyLogic) QueryTicketWaitReply() (resp *dto.TicketWaitRelpyResponse, err error)
type QueryUserStatisticsLogic ¶
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 (*Service) QueryRevenueStatistics ¶
func (*Service) QueryServerTotalData ¶
func (*Service) QueryTicketWaitReply ¶
func (*Service) QueryUserStatistics ¶
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.