logrw

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogReadCloser

type LogReadCloser struct {
	*LogReader
	// contains filtered or unexported fields
}

LogReadCloser wraps a io.ReaderCloser with a logger.

func NewLogReadCloser

func NewLogReadCloser(le *logrus.Entry, underlying io.ReadCloser) *LogReadCloser

func (*LogReadCloser) Close

func (c *LogReadCloser) Close() error

type LogReader

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

LogReader wraps a io.Reader with a logger.

func NewLogReader

func NewLogReader(le *logrus.Entry, underlying io.Reader) *LogReader

func (*LogReader) Read

func (c *LogReader) Read(b []byte) (n int, err error)

Read reads data from the connection. Read can be made to time out and return an error after a fixed time limit; see SetDeadline and SetReadDeadline.

type LogWriteCloser

type LogWriteCloser struct {
	*LogWriter
	// contains filtered or unexported fields
}

LogWriteCloser wraps a io.WriterCloser with a logger.

func NewLogWriteCloser

func NewLogWriteCloser(le *logrus.Entry, underlying io.WriteCloser) *LogWriteCloser

func (*LogWriteCloser) Close

func (c *LogWriteCloser) Close() error

type LogWriter

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

LogWriter wraps a io.Writer with a logger.

func NewLogWriter

func NewLogWriter(le *logrus.Entry, underlying io.Writer) *LogWriter

func (*LogWriter) Write

func (c *LogWriter) Write(b []byte) (n int, err error)

Write writes data to the connection. Write can be made to time out and return an error after a fixed time limit; see SetDeadline and SetWriteDeadline.

Jump to

Keyboard shortcuts

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