package iocounter

import "github.com/influxdata/flux/iocounter"

Index

Types

type Counter

type Counter interface {
	Count() int64
}

Counter counts a number of bytes during an IO operation.

type Writer

type Writer struct {
	io.Writer
	// contains filtered or unexported fields
}

Writer is counter for io.Writer

func (*Writer) Count

func (c *Writer) Count() int64

Count function return counted bytes

func (*Writer) Write

func (c *Writer) Write(buf []byte) (int, error)

Source Files

counter.go writer.go

Version
v0.196.1 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 day ago

Tools for package owners.