Documentation
¶
Overview ¶
Package readmodel holds the platform's own views of other modules' data: the figures its dashboards, audit views and public statistics show. The composition root converts the owning modules' facade results into them, so the shared kernel depends on no other module (ADR-001).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethod ¶
AuthMethod is a configured authentication method.
type OrdersTotal ¶
OrdersTotal sums the orders of a period, in minor units.
type OrdersTotalWithDate ¶
type OrdersTotalWithDate struct {
Date string
AmountTotal int64
NewOrderAmount int64
RenewalOrderAmount int64
}
OrdersTotalWithDate is one period of an order breakdown.
type ServerTrafficRanking ¶
ServerTrafficRanking is one server's traffic in a ranking.
type TotalTraffic ¶
TotalTraffic sums the traffic of a period, in bytes.
type TrafficLog ¶
type TrafficLog struct {
Id int64
ServerId int64
UserId int64
SubscribeId int64
Download int64
Upload int64
Timestamp time.Time
}
TrafficLog is one traffic log entry.
type TrafficLogDetailsFilter ¶
type TrafficLogDetailsFilter struct {
ServerId int64
UserId int64
SubscribeId int64
Start time.Time
End time.Time
Page int
Size int
}
TrafficLogDetailsFilter selects one page of the traffic log entries logged in [Start, End), a zero bound leaving that side open, for the non-zero ids.