blockwriter

package
v0.0.0-...-c2c54f3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package blockwriter is not currently used, but it's useful code we may need

It maintains a buffered queue for writing blocks

TODO: Delete when confirmed not to be needed

Index

Constants

View Source
const ErrClosed errorType = "writer closed"

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockWriter

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

func NewBlockWriter

func NewBlockWriter(underlying io.Writer, maxSize uint64, handleError ErrorHandler) *BlockWriter

func (*BlockWriter) Close

func (bq *BlockWriter) Close() error

func (*BlockWriter) Write

func (bq *BlockWriter) Write(p []byte) (n int, err error)

type ErrorHandler

type ErrorHandler func(error) bool

Jump to

Keyboard shortcuts

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