Documentation
¶
Overview ¶
Code generated; DO NOT EDIT.
Index ¶
Constants ¶
View Source
const Version_AP8D1RO = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventOperation ¶
type EventOperation string
const ( EventOperationUndefined EventOperation = "" EventOperationUpload EventOperation = "upload" EventOperationDownload EventOperation = "download" )
type EventReporter ¶
type EventReporter interface {
RegisterFunc(func(ts time.Time, tx EventTx) bool)
Tx(func(tx EventTx))
TxAt(time.Time, func(tx EventTx))
EventTx
}
func NewNoopEventReporter ¶
func NewNoopEventReporter() EventReporter
type EventService ¶
type EventService string
const ( EventServiceUndefined EventService = "" EventServiceEgress EventService = "egress" EventServiceReplay EventService = "replay" )
type EventTx ¶
type EventTx interface {
ReportService(v EventService)
ReportServiceID(v string)
ReportOperation(v EventOperation)
ReportPath(v string)
ReportSize(v uint64)
ReportLifetime(v uint64)
}
type KeyResolver ¶
type KeyResolver interface {
Resolve(string)
Reset()
}
type ProjectReporter ¶
type ProjectReporter interface {
RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
Tx(func(tx ProjectTx))
TxAt(time.Time, func(tx ProjectTx))
WithEvent(id string) EventReporter
WithDeferredEvent() (EventReporter, KeyResolver)
ProjectTx
}
func NewNoopProjectReporter ¶
func NewNoopProjectReporter() ProjectReporter
type Reporter ¶
type Reporter interface {
WithProject(id string) ProjectReporter
WithDeferredProject() (ProjectReporter, KeyResolver)
}
func NewNoopReporter ¶
func NewNoopReporter() Reporter
Click to show internal directories.
Click to hide internal directories.