Documentation
¶
Index ¶
- type Aggregator
- func (a *Aggregator) AddReport(ctx context.Context, serverInfo *node.Server, protocol string, ...) error
- func (a *Aggregator) AddReportAt(ctx context.Context, serverInfo *node.Server, protocol string, ...) error
- func (a *Aggregator) FlushDueBuckets(ctx context.Context, now time.Time) error
- func (a *Aggregator) FlushServerReports(ctx context.Context) error
- type UserTraffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
func New ¶
func New(svcCtx *svc.ServiceContext) *Aggregator
func (*Aggregator) AddReport ¶
func (a *Aggregator) AddReport(ctx context.Context, serverInfo *node.Server, protocol string, logs []UserTraffic) error
func (*Aggregator) AddReportAt ¶
func (a *Aggregator) AddReportAt(ctx context.Context, serverInfo *node.Server, protocol string, logs []UserTraffic, now time.Time) error
func (*Aggregator) FlushDueBuckets ¶
func (*Aggregator) FlushServerReports ¶
func (a *Aggregator) FlushServerReports(ctx context.Context) error
type UserTraffic ¶
Click to show internal directories.
Click to hide internal directories.