meteredrwc

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(rwc io.ReadWriteCloser, syncBytes *uint64) io.ReadWriteCloser

Types

type MRWC

type MRWC struct {
	// contains filtered or unexported fields
}

*

Updates:
- synced *uint64 + internal int on read
- prometheus telemetry (duration + bytes) on close [ToDo]

*

func (*MRWC) Close

func (mRWC *MRWC) Close() error

func (*MRWC) Read

func (mRWC *MRWC) Read(p []byte) (n int, err error)

func (*MRWC) Write

func (mRWC *MRWC) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL