Documentation
¶
Overview ¶
Package streamusage reconstructs scoped usage for completed streaming calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Policy domain.BillingPolicy
ProxyBillable bool
}
type Counter ¶
type Counter interface {
CountCall(context.Context, app.CountCallInput) (app.CountResult, error)
CountOutput(context.Context, app.CountOutputInput) (app.CountResult, error)
}
type Reconstructor ¶
type Reconstructor struct {
// contains filtered or unexported fields
}
func New ¶
func New(counter Counter, cfg Config) *Reconstructor
func (*Reconstructor) Reconstruct ¶
type Warning ¶
type Warning struct {
Code WarningCode
Message string
Err error
}
type WarningCode ¶
type WarningCode string
const ( WarningContextCanceled WarningCode = "context_canceled" )
Click to show internal directories.
Click to hide internal directories.