Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBytesMeter ¶
func WithBytesMeter(ctx context.Context, meter BytesMeter) context.Context
Types ¶
type BytesMeter ¶
type BytesMeter interface {
AddBytesWritten(n int)
AddBytesRead(n int)
BytesWritten() uint64
BytesRead() uint64
BytesWrittenDelta() uint64
BytesReadDelta() uint64
Launch(ctx context.Context, respFunc substreams.ResponseFunc)
Send(ctx context.Context, respFunc substreams.ResponseFunc) error
}
var NoopBytesMeter BytesMeter = &noopBytesMeter{}
func GetBytesMeter ¶
func GetBytesMeter(ctx context.Context) BytesMeter
func NewBytesMeter ¶
func NewBytesMeter(ctx context.Context) BytesMeter
Click to show internal directories.
Click to hide internal directories.